Newer
Older
dmpopidor / app / views / plans / _available_templates.html.erb
@briley briley on 4 May 2017 582 bytes added new create plan page
<h3><%= _('Which DMP template would you like to use?') %></h3>
<span class="checkboc-label right">
  <%= _('We found multiple DMP templates corresponding to your funder.') %>
</span>

<label for="plan_template_title">
  <%= _('Select a template') %>
</label>

<select id="plan_template_id" name="plan[template_id]" class="combobox-like">
  <%= raw @templates.collect{|t| "<option value=\"#{t.id}\">#{t.title}</option>" }.join('') %>
</select>

<script type="text/javascript">
  $("#plan_template_id").change(function(){
    $(".form-submit").prop('disabled', false);
  });
</script>