diff options
Diffstat (limited to 'views/create.ejs')
-rw-r--r-- | views/create.ejs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/views/create.ejs b/views/create.ejs index 74f9276..36b86e2 100644 --- a/views/create.ejs +++ b/views/create.ejs @@ -3,12 +3,16 @@ <a href="/info/<%= title.title_id %>"><img class="logo" src="/<%= title.title_id %>/cover.jpg"></a> <form action="/create/<%= title.title_id %>" method="post"> <p> +<% if (scenarios.length > 1) { %> Scenario:<br> <select name="scenario"> <% scenarios.forEach((scenario) => { %> <option value="<%= scenario %>"><%= scenario %></option> <% }); %> </select> +<% } else { %> +<input type="hidden" name="scenario" value="<%= scenarios[0] %>"> +<% } %> <%- include('../public/' + title.title_id + '/create.html') %> <p> Description:<br> |