Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: f3dd25a0b0
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (32 sloc) 1.202 kb
<%= render 'shared/errors', :target => @account %>
<div class="span8">
<%= form_for [ :accounts, @account ] do |f| %>
<% if controller.action_name != 'show' %>
<%= f.label :title %>
<%= f.text_field :title, :class => 'span7' %>
<% end %>
<%= f.label :url %>
<%= f.text_field :url, :class => 'span7' %>
<%= f.label :username %>
<%= f.text_field :username, :class => 'span7' %>
<%= f.label :password %>
<%= f.text_field :password, :class => 'span7' %>
<%= f.label :comments %>
<%= f.text_area :comments, :class => 'span8', :rows => 6 %>
<% if controller.action_name != 'show' %>
<fieldset>
<legend>Groups</legend>
<br />
<%= hidden_field_tag "web_account[group_ids][]", nil%>
<% @allowed_groups.each do |group| %>
<label class="checkbox inline">
<%= check_box_tag 'web_account[group_ids][]', group.id, @account.groups.include?(group) %>
<%= group.name %>
</label>
<% end %>
</fieldset>
<hr />
<button type="submit" class="btn"><%= @account.new_record? ? 'Create' : 'Update' %> Account</button>
<% end %>
<% end %>
</div>
Jump to Line
Something went wrong with that request. Please try again.