summaryrefslogtreecommitdiffstats
path: root/app/views/issue_statuses
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/issue_statuses
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/issue_statuses')
-rw-r--r--app/views/issue_statuses/_form.rhtml18
-rw-r--r--app/views/issue_statuses/edit.rhtml6
-rw-r--r--app/views/issue_statuses/list.rhtml28
-rw-r--r--app/views/issue_statuses/new.rhtml6
4 files changed, 58 insertions, 0 deletions
diff --git a/app/views/issue_statuses/_form.rhtml b/app/views/issue_statuses/_form.rhtml
new file mode 100644
index 000000000..f3b1cf2ca
--- /dev/null
+++ b/app/views/issue_statuses/_form.rhtml
@@ -0,0 +1,18 @@
+<%= error_messages_for 'issue_status' %>
+
+<div class="box">
+<!--[form:issue_status]-->
+<p><label for="issue_status_name"><%=l(:field_name)%><span class="required"> *</span></label>
+<%= text_field 'issue_status', 'name' %></p>
+
+<p><label for="issue_status_is_closed"><%=l(:field_is_closed)%></label>
+<%= check_box 'issue_status', 'is_closed' %></p>
+
+<p><label for="issue_status_is_default"><%=l(:field_is_default)%></label>
+<%= check_box 'issue_status', 'is_default' %></p>
+
+<p><label for="issue_status_html_color"><%=l(:field_html_color)%><span class="required"> *</span></label>
+#<%= text_field 'issue_status', 'html_color', :maxlength => 6 %></p>
+
+<!--[eoform:issue_status]-->
+</div> \ No newline at end of file
diff --git a/app/views/issue_statuses/edit.rhtml b/app/views/issue_statuses/edit.rhtml
new file mode 100644
index 000000000..80f856a2a
--- /dev/null
+++ b/app/views/issue_statuses/edit.rhtml
@@ -0,0 +1,6 @@
+<h2><%=l(:label_issue_status)%></h2>
+
+<%= start_form_tag({:action => 'update', :id => @issue_status}, :class => "tabular") %>
+ <%= render :partial => 'form' %>
+ <%= submit_tag l(:button_save) %>
+<%= end_form_tag %>
diff --git a/app/views/issue_statuses/list.rhtml b/app/views/issue_statuses/list.rhtml
new file mode 100644
index 000000000..023863437
--- /dev/null
+++ b/app/views/issue_statuses/list.rhtml
@@ -0,0 +1,28 @@
+<h2><%=l(:label_issue_status_plural)%></h2>
+
+<table class="listTableContent">
+ <tr class="ListHead">
+ <th><%=l(:field_status)%></th>
+ <th><%=l(:field_is_default)%></th>
+ <th><%=l(:field_is_closed)%></th>
+ <th><%=l(:field_html_color)%></th>
+ <th></th>
+ </tr>
+
+<% for status in @issue_statuses %>
+ <tr class="<%= cycle("odd", "even") %>">
+ <td><%= link_to status.name, :action => 'edit', :id => status %></td>
+ <td align="center"><%= image_tag 'true' if status.is_default? %></td>
+ <td align="center"><%= image_tag 'true' if status.is_closed? %></td>
+ <td><div style="background-color:#<%= status.html_color %>">&nbsp</div></td>
+ <td align="center">
+ <%= button_to l(:button_delete), { :action => 'destroy', :id => status }, :confirm => l(:text_are_you_sure), :class => "button-small" %>
+ </td>
+ </tr>
+<% end %>
+</table>
+
+<%= pagination_links_full @issue_status_pages %>
+<br />
+
+<%= link_to '&#187; ' + l(:label_issue_status_new), :action => 'new' %>
diff --git a/app/views/issue_statuses/new.rhtml b/app/views/issue_statuses/new.rhtml
new file mode 100644
index 000000000..2dacb1e21
--- /dev/null
+++ b/app/views/issue_statuses/new.rhtml
@@ -0,0 +1,6 @@
+<h2><%=l(:label_issue_status_new)%></h2>
+
+<%= start_form_tag({:action => 'create'}, :class => "tabular") %>
+ <%= render :partial => 'form' %>
+ <%= submit_tag l(:button_create) %>
+<%= end_form_tag %>