Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some work on dashboard Some minor CSS work on forms
- Loading branch information
Showing
12 changed files
with
73 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
|
||
%p | ||
= form.label :name, t(:'.name') | ||
= form.text_field :name | ||
%fieldset | ||
%legend= t(:'.details') | ||
%p | ||
= form.label :name, t(:'.name') | ||
= form.text_field :name | ||
|
||
%fieldset | ||
%legend= t(:'.maps') | ||
- Map.open.all(:limit => 10).each do |map| | ||
%p | ||
%p.checkbox | ||
= form.radio_button :map_id, map.id | ||
= form.label "map_id_#{map.id}", map.name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
%div[ant] | ||
|
||
= link_to 'Show', object_path(ant) | ||
| | ||
= link_to 'Edit', edit_object_path(ant) | ||
| | ||
= link_to 'Destroy', object_path(ant), :confirm => 'Really destroy ant?', :method => :delete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
= form.hidden_field :type | ||
%p | ||
There aren't any options yet when creating a new queen. Later you can | ||
choose from standard types or something like that. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
%h1 Editing ant | ||
|
||
= error_messages_for :ant | ||
|
||
- form_for(:ant, :url => object_url, :html => { :method => :put }) do |f| | ||
= render :partial => "form", :locals => {:f => f} | ||
%p= submit_tag "Update" | ||
|
||
= link_to 'Show', object_path | ||
| | ||
= link_to 'Back', objects_path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
%h1 Listing ants | ||
|
||
= render :partial => 'ant', :collection => current_objects | ||
|
||
= link_to 'New ant', new_object_path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
- @page_title = t(:'.page_title', :name => current_model_name) | ||
|
||
= error_messages_for :ant | ||
|
||
- form_for(:ant, :url => anthill_ants_url) do |form| | ||
= render :partial => "form", :object => form | ||
%p.submit | ||
= submit_tag t(:'.submit', :name => current_model_name) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
%h1 Viewing ant | ||
|
||
%div[current_object] | ||
|
||
= link_to 'Edit', edit_object_path | ||
| | ||
= link_to 'Destroy', object_path, :confirm => 'Really destroy ant?', :method => :delete | ||
| | ||
= link_to 'Back', objects_path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
%div[anthill] | ||
.name= link_to anthill.name, anthill_path(anthill) | ||
%ul | ||
%li.created_at.datetime= anthill.created_at | ||
%li.worker_count= t(:'.workers', :count => anthill.worker_count) | ||
%li.soldier_count= t(:'.soldiers', :count => anthill.soldier_count) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters