diff options
Diffstat (limited to 'app/views/admin')
-rw-r--r-- | app/views/admin/index.rhtml | 50 | ||||
-rw-r--r-- | app/views/admin/info.rhtml | 10 | ||||
-rw-r--r-- | app/views/admin/mail_options.rhtml | 24 | ||||
-rw-r--r-- | app/views/admin/projects.rhtml | 30 |
4 files changed, 114 insertions, 0 deletions
diff --git a/app/views/admin/index.rhtml b/app/views/admin/index.rhtml new file mode 100644 index 000000000..d937e287c --- /dev/null +++ b/app/views/admin/index.rhtml @@ -0,0 +1,50 @@ +<h2><%=l(:label_administration)%></h2>
+
+<p>
+<%= image_tag "projects" %>
+<%= link_to l(:label_project_plural), :controller => 'admin', :action => 'projects' %> |
+<%= link_to l(:label_new), :controller => 'projects', :action => 'add' %>
+</p>
+
+<p>
+<%= image_tag "users" %>
+<%= link_to l(:label_user_plural), :controller => 'users' %> |
+<%= link_to l(:label_new), :controller => 'users', :action => 'add' %>
+</p>
+
+<p>
+<%= image_tag "role" %>
+<%= link_to l(:label_role_and_permissions), :controller => 'roles' %>
+</p>
+
+<p>
+<%= image_tag "tracker" %>
+<%= link_to l(:label_tracker_plural), :controller => 'trackers' %> |
+<%= link_to l(:label_custom_field_plural), :controller => 'custom_fields' %>
+</p>
+
+<p>
+<%= image_tag "workflow" %>
+<%= link_to l(:label_issue_status_plural), :controller => 'issue_statuses' %> |
+<%= link_to l(:label_workflow), :controller => 'roles', :action => 'workflow' %>
+</p>
+
+<p>
+<%= image_tag "options" %>
+<%= link_to l(:label_enumerations), :controller => 'enumerations' %>
+</p>
+
+<p>
+<%= image_tag "mailer" %>
+<%= link_to l(:field_mail_notification), :controller => 'admin', :action => 'mail_options' %>
+</p>
+
+<p>
+<%= image_tag "login" %>
+<%= link_to l(:label_authentication), :controller => 'auth_sources' %>
+</p>
+
+<p>
+<%= image_tag "help" %>
+<%= link_to l(:label_information_plural), :controller => 'admin', :action => 'info' %>
+</p>
\ No newline at end of file diff --git a/app/views/admin/info.rhtml b/app/views/admin/info.rhtml new file mode 100644 index 000000000..4777a151e --- /dev/null +++ b/app/views/admin/info.rhtml @@ -0,0 +1,10 @@ +<h2><%=l(:label_information_plural)%></h2>
+
+<p><%=l(:field_version)%>: <strong><%= RDM_APP_NAME %> <%= RDM_APP_VERSION %></strong></p>
+
+<%=l(:label_environment)%>:
+<ul>
+<% Rails::Info.properties.each do |name, value| %>
+<li><%= name %>: <%= value %></li>
+<% end %>
+</ul>
\ No newline at end of file diff --git a/app/views/admin/mail_options.rhtml b/app/views/admin/mail_options.rhtml new file mode 100644 index 000000000..54e2daf3e --- /dev/null +++ b/app/views/admin/mail_options.rhtml @@ -0,0 +1,24 @@ +<h2><%=l(:field_mail_notification)%></h2>
+
+<%= start_form_tag ({}, :id => 'mail_options_form')%>
+
+<div class="box">
+<p><%=l(:text_select_mail_notifications)%></p>
+
+<% actions = @actions.group_by {|p| p.group_id } %>
+<% actions.keys.sort.each do |group_id| %>
+<fieldset style="margin-top: 6px;"><legend><strong><%= l(Permission::GROUPS[group_id]) %></strong></legend>
+<% actions[group_id].each do |p| %>
+ <div style="width:170px;float:left;"><%= check_box_tag "action_ids[]", p.id, p.mail_enabled? %>
+ <%= l(p.description.to_sym) %>
+ </div>
+<% end %>
+</fieldset>
+<% end %>
+
+<br />
+<p><%= check_all_links 'mail_options_form' %></p>
+</div>
+
+<%= submit_tag l(:button_save) %>
+<%= end_form_tag %>
diff --git a/app/views/admin/projects.rhtml b/app/views/admin/projects.rhtml new file mode 100644 index 000000000..39e4d9bf7 --- /dev/null +++ b/app/views/admin/projects.rhtml @@ -0,0 +1,30 @@ +<h2><%=l(:label_project_plural)%></h2> + +<table class="listTableContent"> + <tr class="ListHead"> + <%= sort_header_tag('name', :caption => l(:label_project)) %>
+ <th><%=l(:field_description)%></th>
+ <th><%=l(:field_is_public)%></th> + <th><%=l(:label_subproject_plural)%></th>
+ <%= sort_header_tag('created_on', :caption => l(:field_created_on)) %>
+ <th></th> + </tr> + +<% for project in @projects %> + <tr class="<%= cycle("odd", "even") %>">
+ <td><%= link_to project.name, :controller => 'projects', :action => 'settings', :id => project %>
+ <td><%= project.description %>
+ <td align="center"><%= image_tag 'true' if project.is_public? %> + <td align="center"><%= project.projects_count %>
+ <td align="center"><%= format_date(project.created_on) %>
+ <td align="center"> + <%= button_to l(:button_delete), { :controller => 'projects', :action => 'destroy', :id => project }, :class => "button-small" %>
+ </td>
+ </tr> +<% end %> +</table> + +<p><%= pagination_links_full @project_pages %> +[ <%= @project_pages.current.first_item %> - <%= @project_pages.current.last_item %> / <%= @project_count %> ]</p>
+ +<p><%= link_to ('» ' + l(:label_project_new)), :controller => 'projects', :action => 'add' %></p>
\ No newline at end of file |