Newer
Older
dmpopidor / app / views / dmptemplates / _edit_version.html.erb
@Marta Ribeiro Marta Ribeiro on 3 Jun 2016 1 KB DMPonline4 - RAILS 4.0 (#4)
<!-- edit version and its sections,questions and guidance. Version is passed as an argument-->

<!-- version details-->
<%= form_for(version, :url => admin_updateversion_dmptemplate_path(version, :edit => edit,  :phase => phase), :html => { :method => :put}) do |f| %>
						
	<h3>
		<%= t('org_admin.templates.version_details_label')%>
	</h3>
	<div class="div_clear"></div>	
		
	<div class="phase_details_body">
		<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.desc_label') %></td>
				<td><div class="div_left_icon">
						<%= text_area_tag("version-desc", version.description, class: "tinymce") %>
					</div>
					<div class="div_right_icon">
						<%= link_to( image_tag('help_button.png'), '#', :class => 'version_desc_popover', :rel => "popover", 'data-html' => "true", 'data-content' => t('org_admin.versions.desc_help_text_html'))%>
					</div>
				</td>
			</tr>
			<tr>
				<td class="first_template"><%= t('org_admin.templates.published_label') %></td>
				<td><%= f.check_box :published, :as => :check_boxes %></td>

			</tr>
		</table>
		
		<div class="div_clear"></div>
		
		<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>
	</div>
	
<%end%>