<!-- edit/add a phase. Phase is passed as an argument--> <%= form_for(phase, :url => admin_updatephase_dmptemplate_path(phase), :html => { :method => :put}) do |f| %> <h3> <%= t('org_admin.templates.phase_details_label')%> </h3> <div class="div_left"> <%= raw t('org_admin.templates.phase_details_text_html')%> </div> <br /> <div class="div_clear"></div> <table class="dmp_details_table phase"> <tr> <td class="first_template"><%= t('org_admin.templates.title_label') %></td> <td><%= f.text_field :title, :as => :string, :class => 'text_field has-tooltip', 'data-toggle' => "tooltip", 'title' => t('org_admin.templates.phase_title_help_text') %></td> </tr> <tr> <td class="first_template"><%= t('org_admin.templates.phase_order_label') %></td> <td><%= f.number_field :number, :in => 0..5, :class => "number_field has-tooltip", 'data-toggle' => "tooltip", 'title' => t('org_admin.templates.phase_number_help_text') %></td> </tr> <tr> <td class="first_template"><%= t('org_admin.templates.desc_label') %></td> <td class="phase_table_last_column"> <div class="div_left_icon"> <%= text_area_tag("phase-desc", phase.description, class: "tinymce") %> </div> <div class="div_right_icon"> <%= link_to( image_tag('help_button.png'), '#', :class => 'phase_desc_popover', :rel => "popover", 'data-html' => "true", 'data-content' => t('org_admin.templates.phase_desc_help_text_html'))%> </div> </td> </tr> </table> <div class="div_clear"></div> <!-- submit buttons --> <div class="move_2_right"> <%= f.submit t('helpers.submit.save'), :class => 'btn btn-primary' %> <%= link_to t('helpers.submit.cancel'), admin_phase_dmptemplate_path(phase), :class => 'btn cancel' %> </div> <%end%>