summaryrefslogtreecommitdiffstats
path: root/app/views/trackers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2006-12-05 20:45:04 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2006-12-05 20:45:04 +0000
commit96f83cc8f0f032554f771a59da22303cd473b878 (patch)
tree355a0d2ed653a5426c59ebf6a1fe65eba024b4d0 /app/views/trackers
parenteabc04d8368824965d3ac8de3fa84502e9c05d38 (diff)
downloadredmine-96f83cc8f0f032554f771a59da22303cd473b878.tar.gz
redmine-96f83cc8f0f032554f771a59da22303cd473b878.zip
trunk moved from /trunk/redmine to /trunk
git-svn-id: http://redmine.rubyforge.org/svn/trunk@67 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/trackers')
-rw-r--r--app/views/trackers/_form.rhtml7
-rw-r--r--app/views/trackers/edit.rhtml6
-rw-r--r--app/views/trackers/list.rhtml22
-rw-r--r--app/views/trackers/new.rhtml6
4 files changed, 41 insertions, 0 deletions
diff --git a/app/views/trackers/_form.rhtml b/app/views/trackers/_form.rhtml
new file mode 100644
index 000000000..625c0d636
--- /dev/null
+++ b/app/views/trackers/_form.rhtml
@@ -0,0 +1,7 @@
+<%= error_messages_for 'tracker' %>
+<div class="box">
+<!--[form:tracker]-->
+<p><%= f.text_field :name, :required => true %></p>
+<p><%= f.check_box :is_in_chlog %></p>
+<!--[eoform:tracker]-->
+</div>
diff --git a/app/views/trackers/edit.rhtml b/app/views/trackers/edit.rhtml
new file mode 100644
index 000000000..d8411099c
--- /dev/null
+++ b/app/views/trackers/edit.rhtml
@@ -0,0 +1,6 @@
+<h2><%=l(:label_tracker)%></h2>
+
+<% labelled_tabular_form_for :tracker, @tracker, :url => { :action => 'edit' } do |f| %>
+<%= render :partial => 'form', :locals => { :f => f } %>
+<%= submit_tag l(:button_save) %>
+<% end %> \ No newline at end of file
diff --git a/app/views/trackers/list.rhtml b/app/views/trackers/list.rhtml
new file mode 100644
index 000000000..8d4a5c595
--- /dev/null
+++ b/app/views/trackers/list.rhtml
@@ -0,0 +1,22 @@
+<h2><%=l(:label_tracker_plural)%></h2>
+
+<table class="listTableContent">
+ <tr class="ListHead">
+ <th><%=l(:label_tracker)%></th>
+ <th></th>
+ </tr>
+
+<% for tracker in @trackers %>
+ <tr class="<%= cycle("odd", "even") %>">
+ <td><%= link_to tracker.name, :action => 'edit', :id => tracker %></td>
+ <td align="center">
+ <%= button_to l(:button_delete), { :action => 'destroy', :id => tracker }, :confirm => l(:text_are_you_sure), :class => "button-small" %>
+ </td>
+ </tr>
+<% end %>
+</table>
+
+<%= pagination_links_full @tracker_pages %>
+<br />
+
+<%= link_to '&#187; ' + l(:label_tracker_new), :action => 'new' %>
diff --git a/app/views/trackers/new.rhtml b/app/views/trackers/new.rhtml
new file mode 100644
index 000000000..b318a5dc4
--- /dev/null
+++ b/app/views/trackers/new.rhtml
@@ -0,0 +1,6 @@
+<h2><%=l(:label_tracker_new)%></h2>
+
+<% labelled_tabular_form_for :tracker, @tracker, :url => { :action => 'new' } do |f| %>
+<%= render :partial => 'form', :locals => { :f => f } %>
+<%= submit_tag l(:button_create) %>
+<% end %> \ No newline at end of file