Skip to content

Instantly share code, notes, and snippets.

@byrnejb
Created October 19, 2010 23:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save byrnejb/635423 to your computer and use it in GitHub Desktop.
Save byrnejb/635423 to your computer and use it in GitHub Desktop.
_role_header.html.erb
<%- fields_for(role_header) do |ff| -%>
<div class="roles" id="roles_header">
<fieldset style=".role_header label {display:block;}">
<legend><em> role Header </em></legend>
<p>
<b>
<%= label role_header.class.to_s.downcase,
:rolename,
:'Role Name: ',
:class => :input_box_label,
:for => 'input_rolename' -%>
</b> <br />
<%= ff.text_field :rolename,
:class => :input_text_box,
:id => :'input_rolename',
:maxlength => 32,
:size => 32,
:title => :'Enter the name by which this role is called.',
:value => "#{
( role_header.rolename ?
role_header.rolename : " ")
}"
-%>
</p>
<p>
<b>
<%= label role_header.class.to_s.downcase,
:description,
:'Description: ',
:class => :input_box_label,
:for => :'input_role_description'
-%>
</b> <br />
<%= ff.text_field :description,
:class => :input_text_box,
:id => :'input_role_description',
:title => :'Enter the purpose or use of this role.',
:size => 80
-%>
</p>
</fieldset>
</div>
<%- end -%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment