voluntary 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -1
- data/README.md +0 -1
- data/app/assets/javascripts/voluntary/base.js.coffee +13 -12
- data/app/assets/stylesheets/voluntary/application.css +1 -1
- data/app/assets/stylesheets/voluntary/base.css.sass +3 -3
- data/app/assets/stylesheets/voluntary/bootstrap_and_overrides.css.sass +0 -1
- data/app/assets/stylesheets/voluntary/sticky_footer.css +1 -1
- data/app/controllers/products_controller.rb +2 -2
- data/app/controllers/voluntary/api/v1/base_controller.rb +24 -4
- data/app/controllers/voluntary/api/v1/tasks_controller.rb +50 -0
- data/app/controllers/voluntary/application_controller.rb +0 -4
- data/app/helpers/voluntary/show_helper.rb +2 -1
- data/app/models/area.rb +1 -2
- data/app/models/product.rb +1 -0
- data/app/models/project.rb +0 -1
- data/app/models/project_user.rb +1 -2
- data/app/models/result.rb +4 -0
- data/app/models/story.rb +21 -2
- data/app/models/task.rb +14 -1
- data/app/models/thing.rb +11 -0
- data/app/models/user.rb +9 -8
- data/app/models/wikidata.rb +20 -0
- data/app/views/areas/_form.html.erb +7 -6
- data/app/views/comments/_form.html.erb +7 -7
- data/app/views/layouts/application.html.erb +10 -10
- data/app/views/layouts/shared/_flash_messages.html.erb +1 -1
- data/app/views/layouts/shared/_navigation.html.erb +7 -9
- data/app/views/organizations/_form.html.erb +6 -6
- data/app/views/pages/_form.html.erb +7 -7
- data/app/views/products/_form.html.erb +19 -20
- data/app/views/projects/_form.html.erb +12 -12
- data/app/views/shared/form/_error_messages.html.erb +1 -1
- data/app/views/shared/layouts/twitter_bootstrap/_control_group.html.erb +5 -5
- data/app/views/shared/layouts/twitter_bootstrap/control_group/_boolean.html.erb +4 -4
- data/app/views/shared/resource/_actions.html.erb +2 -1
- data/app/views/stories/_form.html.erb +4 -14
- data/app/views/stories/show.html.erb +1 -0
- data/app/views/stories/steps/_activate.html.erb +6 -9
- data/app/views/stories/steps/_setup_tasks.html.erb +19 -18
- data/app/views/tasks/show.html.erb +20 -0
- data/app/views/users/_form.html.erb +6 -10
- data/app/views/users/preferences.html.erb +6 -8
- data/app/views/users/show.html.erb +1 -0
- data/app/views/workflow/project_owner/index.html.erb +2 -2
- data/app/views/workflow/tasks/_work_form.html.erb +5 -7
- data/app/views/workflow/tasks/steps/_complete.html.erb +9 -5
- data/app/views/workflow/tasks/steps/_review.html.erb +11 -6
- data/app/views/workflow/tasks/steps/_work.html.erb +15 -10
- data/app/views/workflow/user/index.html.erb +4 -4
- data/config/initializers/simple_form.rb +10 -10
- data/config/initializers/simple_form_bootstrap.rb +136 -0
- data/config/locales/general/en.yml +3 -10
- data/config/locales/resources/story/en.yml +5 -0
- data/config/locales/resources/thing/en.yml +8 -0
- data/config/locales/resources/user/en.yml +13 -1
- data/config/routes/api.rb +4 -3
- data/db/migrate/20120907144853_create_schema.rb +0 -2
- data/db/migrate/20131018143613_replace_user_by_polymorphic_resource_in_candidatures.rb +16 -8
- data/db/migrate/20150802141840_drop_recruiting_unless_recruiting_plugin_present.rb +3 -2
- data/db/migrate/20150808155719_add_api_key_to_users.rb +13 -0
- data/db/migrate/20150809120211_remove_roles_model.rb +63 -0
- data/lib/applicat/mvc/model/resource/base.rb +0 -8
- data/lib/concerns/model/base_thing.rb +9 -0
- data/lib/generators/voluntary/install/install_generator.rb +0 -15
- data/lib/generators/voluntary/product_dummy/product_dummy_generator.rb +0 -15
- data/lib/voluntary/test/rspec_helpers/factories.rb +0 -11
- data/lib/voluntary/version.rb +1 -1
- data/lib/voluntary.rb +3 -5
- metadata +48 -94
- data/app/models/role/admin.rb +0 -2
- data/app/models/role/master.rb +0 -2
- data/app/models/role/project_owner.rb +0 -2
- data/app/models/role/user.rb +0 -2
- data/app/models/role.rb +0 -8
- data/app/models/user_role.rb +0 -6
- data/db/seeds.rb +0 -14
- data/lib/db_seed.rb +0 -166
- data/lib/generators/voluntary/install/templates/db/seeds.rb +0 -14
- data/lib/generators/voluntary/install/templates/lib/volontariat_seed.rb +0 -36
- data/lib/volontariat_seed.rb +0 -27
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
<%= simple_form_for(@product, html: {class: 'form-horizontal'}) do |f| %>
|
|
1
|
+
<%= simple_form_for(@product, url: @product.new_record? ? products_path : product_path(@product), html: {class: 'form-horizontal'}, wrapper: :horizontal_form) do |f| %>
|
|
2
2
|
<%= render partial: 'shared/form/error_messages', locals: { resource: @product } %>
|
|
3
|
+
|
|
4
|
+
<%= f.input :name %>
|
|
5
|
+
<%= f.input :text, as: :text, input_html: {style: 'width: 500px; height:300px;'} %>
|
|
3
6
|
|
|
4
|
-
<div class="form-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
<div class="
|
|
9
|
-
<label class="check_boxes required control-label">
|
|
10
|
-
<abbr title="required">*</abbr>
|
|
11
|
-
<%= t('areas.index.title') %>
|
|
12
|
-
</label>
|
|
13
|
-
<div class="controls">
|
|
7
|
+
<div class="form-group string required">
|
|
8
|
+
<label class="string required control-label col-sm-3 control-label">
|
|
9
|
+
<abbr title="required">*</abbr> <%= t('areas.index.title') %>
|
|
10
|
+
</label>
|
|
11
|
+
<div class="col-sm-9">
|
|
14
12
|
<% Area.all.each do |area| %>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
<label class="checkbox">
|
|
14
|
+
<input class="check_boxes required" id="product_area_ids_<%=area.id%>" name="product[area_ids][]"
|
|
15
|
+
type="checkbox" value="<%=area.id%>"<%= @product.area_ids.include?(area.id) ? ' checked="checked"' : '' %>/>
|
|
16
|
+
<%= link_to area.name, area %>
|
|
17
|
+
</label>
|
|
20
18
|
<% end %>
|
|
21
|
-
</div>
|
|
22
19
|
</div>
|
|
23
|
-
</div>
|
|
20
|
+
</div>
|
|
24
21
|
|
|
25
|
-
<div class="form-
|
|
26
|
-
|
|
22
|
+
<div class="form-group">
|
|
23
|
+
<div class="col-sm-offset-3 col-sm-9">
|
|
24
|
+
<%= f.button :submit %>
|
|
25
|
+
</div>
|
|
27
26
|
</div>
|
|
28
27
|
<% end %>
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
<%= simple_form_for(@project, html: {class: 'form-horizontal'}) do |f| %>
|
|
1
|
+
<%= simple_form_for(@project, html: {class: 'form-horizontal'}, wrapper: :horizontal_form) do |f| %>
|
|
2
2
|
<%= render partial: 'shared/form/error_messages', locals: { resource: @project } %>
|
|
3
|
+
|
|
4
|
+
<%= f.input :organization_id, collection: current_user.organizations %>
|
|
5
|
+
<%= f.input :product_id, collection: Product.all %>
|
|
6
|
+
<%= f.input :name %>
|
|
7
|
+
<%= f.input :text, input_html: {style: 'width: 500px; height:300px;'} %>
|
|
8
|
+
<%= f.input :url %>
|
|
3
9
|
|
|
4
|
-
|
|
5
|
-
<%= f.input :organization_id, collection: current_user.organizations %>
|
|
6
|
-
<%= f.input :product_id, collection: Product.all %>
|
|
7
|
-
<%= f.input :name %>
|
|
8
|
-
<%= f.input :text, input_html: {style: 'width: 500px; height:300px;'} %>
|
|
9
|
-
<%= f.input :url %>
|
|
10
|
-
|
|
11
|
-
<%= f.association :areas, as: :check_boxes %>
|
|
12
|
-
</div>
|
|
10
|
+
<%= f.association :areas, as: :check_boxes %>
|
|
13
11
|
|
|
14
|
-
<div class="form-
|
|
15
|
-
|
|
12
|
+
<div class="form-group">
|
|
13
|
+
<div class="col-sm-offset-3 col-sm-9">
|
|
14
|
+
<%= f.button :submit %>
|
|
15
|
+
</div>
|
|
16
16
|
</div>
|
|
17
17
|
<% end %>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<% if resource && resource.errors.any? %>
|
|
2
|
-
<div class="alert alert-
|
|
2
|
+
<div class="alert alert-danger">
|
|
3
3
|
<h2><%= t('general.form.errors_count', count: pluralize(resource.errors.count, t('general.error'))) %></h2>
|
|
4
4
|
<ul>
|
|
5
5
|
<% resource.errors.full_messages.each do |msg| %>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<% id ||= field.match(/id="([^"]*)"/)[1] %>
|
|
2
2
|
<% required ||= false %>
|
|
3
|
-
<% required_class = required ? '
|
|
4
|
-
<div class="
|
|
5
|
-
<label
|
|
3
|
+
<% required_class = required ? 'required' : 'optional' %>
|
|
4
|
+
<div class="form-group string <%= required_class %> <%= id %>">
|
|
5
|
+
<label class="string <%= required_class %> control-label col-sm-3 control-label" for="<%= id %>">
|
|
6
6
|
<% if required %><abbr title="required">*</abbr><% end %> <%= label %>
|
|
7
7
|
</label>
|
|
8
|
-
<div class="
|
|
8
|
+
<div class="col-sm-9">
|
|
9
9
|
<%= field %>
|
|
10
10
|
</div>
|
|
11
|
-
</div>
|
|
11
|
+
</div>
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
<% required ||= false %>
|
|
3
3
|
<% required_class = required ? ' required' : ' optional' %>
|
|
4
4
|
<% value ||= true %>
|
|
5
|
-
<div class="
|
|
6
|
-
<label class="
|
|
7
|
-
<div class="
|
|
5
|
+
<div class="form-group string <%= required_class %> <%= id %>">
|
|
6
|
+
<label class="string <%= required_class %> control-label col-sm-3 control-label"><%= label %></label>
|
|
7
|
+
<div class="col-sm-9">
|
|
8
8
|
<label class="radio">
|
|
9
9
|
<input type="radio" value="true" name="<%= name %>" id="<%= id %>_true"<%= value ? ' checked="checked"' : '' %> class="radio_buttons <%= required_class %>"/>
|
|
10
10
|
Yes
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
No
|
|
15
15
|
</label>
|
|
16
16
|
</div>
|
|
17
|
-
</div>
|
|
17
|
+
</div>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<% namespace ||= nil %>
|
|
2
|
+
<% after_namespace ||= nil %>
|
|
2
3
|
<% if !resource.is_a?(Column) && (
|
|
3
4
|
can?(:destroy, resource) || can?(:edit, resource) || (
|
|
4
5
|
resource.respond_to?(:state_events) && resource.state_events.select{|event| can? event, resource }.any?
|
|
@@ -19,7 +20,7 @@
|
|
|
19
20
|
</li>
|
|
20
21
|
<% end %>
|
|
21
22
|
<% if can? :edit, resource %>
|
|
22
|
-
<li><%= link_to t('general.edit'), eval("edit_#{(namespace.present? ? namespace.to_s + '_' : '')}#{type.gsub('/', '_').singularize}_path(resource)") %></li>
|
|
23
|
+
<li><%= link_to t('general.edit'), eval("edit_#{(namespace.present? ? namespace.to_s + '_' : '')}#{type.gsub('/', '_').singularize}#{after_namespace.present? ? '_' + after_namespace : ''}_path(resource)") %></li>
|
|
23
24
|
<% end %>
|
|
24
25
|
<% links = event_links_for_resource(resource, type) %>
|
|
25
26
|
<% if links.any? %>
|
|
@@ -1,19 +1,9 @@
|
|
|
1
1
|
<%= simple_form_for(@story, url: @story.new_record? ? stories_path : story_path(@story), as: :story, html: {class: 'form-vertical'}) do |f| %>
|
|
2
2
|
<%= render partial: 'shared/form/error_messages', locals: { resource: @story } %>
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
</div>
|
|
8
|
-
<% end %>
|
|
4
|
+
<%= @story.project ? f.hidden_field(:project_id) : f.input(:project_id, collection: Project.all) %>
|
|
5
|
+
<%= f.input :name %>
|
|
6
|
+
<%= f.input :text, as: :text, input_html: {style: 'width:500px; height:100px;'} %>
|
|
9
7
|
|
|
10
|
-
|
|
11
|
-
<%= @story.project ? f.hidden_field(:project_id) : f.input(:project_id, collection: Project.all) %>
|
|
12
|
-
<%= f.input :name %>
|
|
13
|
-
<%= f.input :text, as: :text, input_html: {style: 'width:500px; height:100px;'} %>
|
|
14
|
-
</div>
|
|
15
|
-
|
|
16
|
-
<div class="form-actions">
|
|
17
|
-
<%= f.button :submit %>
|
|
18
|
-
</div>
|
|
8
|
+
<%= f.button :submit %>
|
|
19
9
|
<% end %>
|
|
@@ -3,15 +3,12 @@
|
|
|
3
3
|
<% if step == :activate %>
|
|
4
4
|
<input type="hidden" name="next_step" value="1"/>
|
|
5
5
|
<% end %>
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
</div>
|
|
13
|
-
|
|
14
|
-
<div class="form-actions">
|
|
6
|
+
<%= render partial: 'tasks/collection', locals: {
|
|
7
|
+
collection: @story.tasks.select{|t| !t.new_record? },
|
|
8
|
+
options: { current_parent: @story, columns: @step_presenter.task_columns, append_new_link: false }
|
|
9
|
+
}
|
|
10
|
+
%>
|
|
11
|
+
<div class="form-group">
|
|
15
12
|
<%= f.button :submit, t('general.events.activate') %>
|
|
16
13
|
</div>
|
|
17
14
|
<% end %>
|
|
@@ -1,23 +1,28 @@
|
|
|
1
|
+
<%= simple_form_for(@story, @step_presenter.form_options) do |f| %>
|
|
2
|
+
<%= f.input :tasks_file, as: :file, label: t('activerecord.attributes.story.tasks_file') %>
|
|
3
|
+
<% if step == :setup_tasks %>
|
|
4
|
+
<input type="hidden" name="next_step" value="1"/>
|
|
5
|
+
<% end %>
|
|
6
|
+
<div class="form-group">
|
|
7
|
+
<button type="submit" class="btn btn-default"><%= t('stories.steps.setup_tasks.import') %></button>
|
|
8
|
+
</div>
|
|
9
|
+
<% end %>
|
|
10
|
+
|
|
1
11
|
<%= simple_form_for(@story, @step_presenter.form_options) do |f| %>
|
|
2
12
|
<%= render partial: 'shared/form/error_messages', locals: { resource: @story } %>
|
|
3
13
|
<% if step == :setup_tasks %>
|
|
4
14
|
<input type="hidden" name="next_step" value="1"/>
|
|
5
15
|
<% end %>
|
|
6
16
|
|
|
7
|
-
<div class="form-
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
<%= link_to_add_fields(
|
|
14
|
-
t('stories.steps.setup_tasks.add_task'), f, :tasks, target: 'setup_tasks_input'
|
|
15
|
-
) %>
|
|
16
|
-
</div>
|
|
17
|
-
</div>
|
|
17
|
+
<div class="form-group">
|
|
18
|
+
<button type="submit" class="btn btn-default"><%= t('stories.steps.setup_tasks.update') %></button>
|
|
19
|
+
|
|
20
|
+
<%= link_to_add_fields(
|
|
21
|
+
t('stories.steps.setup_tasks.add_task'), f, :tasks, target: 'setup_tasks_input'
|
|
22
|
+
) %>
|
|
18
23
|
</div>
|
|
19
24
|
|
|
20
|
-
<div id="setup_tasks_input"
|
|
25
|
+
<div id="setup_tasks_input">
|
|
21
26
|
<%= f.simple_fields_for :tasks do |task_form| %>
|
|
22
27
|
<%= render_product_specific_partial_if_available(
|
|
23
28
|
task_form.object, 'stories/task_fields', f: task_form
|
|
@@ -25,11 +30,7 @@
|
|
|
25
30
|
<% end %>
|
|
26
31
|
</div>
|
|
27
32
|
|
|
28
|
-
<div class="form-
|
|
29
|
-
<
|
|
30
|
-
<div class="controls">
|
|
31
|
-
<%= f.button :submit, t('stories.steps.setup_tasks.update') %>
|
|
32
|
-
</div>
|
|
33
|
-
</div>
|
|
33
|
+
<div class="form-group">
|
|
34
|
+
<button type="submit" class="btn btn-default"><%= t('stories.steps.setup_tasks.update') %></button>
|
|
34
35
|
</div>
|
|
35
36
|
<% end %>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<h3><%= resource.name %></h3>
|
|
2
|
+
|
|
3
|
+
<dl class="dl-horizontal">
|
|
4
|
+
<%= show_attribute :state %>
|
|
5
|
+
<%= show_actions after_namespace: 'workflow_project_owner_index' %>
|
|
6
|
+
</dl>
|
|
7
|
+
|
|
8
|
+
<h4><%= t('tasks.show.story_text') %></h4>
|
|
9
|
+
|
|
10
|
+
<%= resource.story.text %>
|
|
11
|
+
|
|
12
|
+
<% if resource.text.present? %>
|
|
13
|
+
<h4><%= t('tasks.show.text') %></h4>
|
|
14
|
+
|
|
15
|
+
<%= resource.text %>
|
|
16
|
+
<% end %>
|
|
17
|
+
|
|
18
|
+
<h4><%= t('activerecord.models.result') %></h4>
|
|
19
|
+
|
|
20
|
+
<%= resource.result.text if resource.result_id.present? %>
|
|
@@ -3,11 +3,10 @@
|
|
|
3
3
|
method: resource.new_record? ? :post : :put,
|
|
4
4
|
html: {
|
|
5
5
|
class: 'form-horizontal block-form', autocomplete: 'off'
|
|
6
|
-
}
|
|
6
|
+
}, wrapper: :horizontal_form
|
|
7
7
|
) do |f| %>
|
|
8
8
|
<%= devise_error_messages! %>
|
|
9
9
|
|
|
10
|
-
<div class="form-inputs">
|
|
11
10
|
<% @presenter.attributes.each do |attribute| %>
|
|
12
11
|
<%= case attribute
|
|
13
12
|
when :name
|
|
@@ -29,15 +28,12 @@
|
|
|
29
28
|
f.input attribute
|
|
30
29
|
end %>
|
|
31
30
|
<% end %>
|
|
32
|
-
|
|
33
|
-
<%
|
|
34
|
-
#TODO: language selection
|
|
35
|
-
%>
|
|
36
31
|
|
|
37
32
|
<%= recaptcha_tags if resource.new_record? && Rails.env == 'production' %>
|
|
38
|
-
</div>
|
|
39
33
|
|
|
40
|
-
<div class="form-
|
|
41
|
-
|
|
42
|
-
|
|
34
|
+
<div class="form-group">
|
|
35
|
+
<div class="col-sm-offset-3 col-sm-9">
|
|
36
|
+
<%= f.button :submit %>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
43
39
|
<% end %>
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
<h3><%= t('users.preferences.title') %></h3>
|
|
2
2
|
|
|
3
|
-
<%= simple_form_for(current_user, url: preferences_user_path(current_user), html: { class: 'form-horizontal block-form' }) do |f| %>
|
|
4
|
-
<div class="form-
|
|
5
|
-
|
|
3
|
+
<%= simple_form_for(current_user, url: preferences_user_path(current_user), html: { class: 'form-horizontal block-form' }, wrapper: :horizontal_form) do |f| %>
|
|
4
|
+
<div class="form-group">
|
|
5
|
+
<div class="col-sm-offset-3 col-sm-9">
|
|
6
|
+
<%= f.button :submit %>
|
|
7
|
+
</div>
|
|
6
8
|
</div>
|
|
7
|
-
|
|
8
|
-
<div class="form-actions">
|
|
9
|
-
<%= f.button :submit %>
|
|
10
|
-
</div>
|
|
11
|
-
<% end %>
|
|
9
|
+
<% end %>
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
<%= render 'shared/form/error_messages', resource: resource %>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
</fieldset>
|
|
8
|
-
</div>
|
|
2
|
+
<%= render 'shared/form/error_messages', resource: @result %>
|
|
3
|
+
<fieldset>
|
|
4
|
+
<input type="hidden" name="task[result_attributes][task_id]" id="task_result_attributes_task_id" value="<%= resource.id %>"/>
|
|
5
|
+
<%= text_area_tag 'task[result_attributes][text]', @result.text, style: 'width: 98%; height:200px;' %>
|
|
6
|
+
</fieldset>
|
|
@@ -2,14 +2,18 @@
|
|
|
2
2
|
resource, 'workflow/tasks/work_head'
|
|
3
3
|
) %>
|
|
4
4
|
|
|
5
|
-
<%= simple_form_for(
|
|
5
|
+
<%= simple_form_for(
|
|
6
|
+
resource, url: update_task_workflow_user_index_path(resource),
|
|
7
|
+
html: {class: 'form-horizontal'}, wrapper: :horizontal_form
|
|
8
|
+
) do |f| %>
|
|
6
9
|
<%= render_product_specific_partial_if_available(
|
|
7
10
|
resource, 'workflow/tasks/work_form', f: f, resource: resource
|
|
8
11
|
) %>
|
|
9
12
|
|
|
10
|
-
<div class="form-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
<div class="form-group">
|
|
14
|
+
<div class="col-sm-offset-3 col-sm-9">
|
|
15
|
+
<%= f.button :submit %>
|
|
16
|
+
<%= f.button :submit, t('tasks.general.events.follow_up'), name: 'event[follow_up]' %>
|
|
17
|
+
</div>
|
|
14
18
|
</div>
|
|
15
19
|
<% end %>
|
|
@@ -2,16 +2,21 @@
|
|
|
2
2
|
resource, 'workflow/tasks/work_head'
|
|
3
3
|
) %>
|
|
4
4
|
|
|
5
|
-
<%= simple_form_for(
|
|
5
|
+
<%= simple_form_for(
|
|
6
|
+
resource, url: update_task_workflow_user_index_path(resource),
|
|
7
|
+
html: {class: 'form-horizontal'}, wrapper: :horizontal_form
|
|
8
|
+
) do |f| %>
|
|
6
9
|
<%= render_product_specific_partial_if_available(
|
|
7
10
|
resource, 'workflow/tasks/work_form', f: f, resource: resource
|
|
8
11
|
) %>
|
|
9
12
|
|
|
10
|
-
<div class="form-
|
|
11
|
-
|
|
13
|
+
<div class="form-group">
|
|
14
|
+
<div class="col-sm-offset-3 col-sm-9">
|
|
15
|
+
<%= f.button :submit %>
|
|
12
16
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
17
|
+
<%= f.button :submit, t('tasks.general.events.follow_up'), name: 'event[follow_up]' %>
|
|
18
|
+
|
|
19
|
+
<%= f.button :submit, t('tasks.general.events.complete'), name: 'event[complete]' %>
|
|
20
|
+
</div>
|
|
16
21
|
</div>
|
|
17
22
|
<% end %>
|
|
@@ -2,20 +2,25 @@
|
|
|
2
2
|
resource, 'workflow/tasks/work_head'
|
|
3
3
|
) %>
|
|
4
4
|
|
|
5
|
-
<%= simple_form_for(
|
|
5
|
+
<%= simple_form_for(
|
|
6
|
+
resource, as: :task, url: update_task_workflow_user_index_path(resource),
|
|
7
|
+
html: {class: 'form-horizontal'}, wrapper_form: :horizontal_form
|
|
8
|
+
) do |f| %>
|
|
6
9
|
<%= render_product_specific_partial_if_available(
|
|
7
10
|
resource, 'workflow/tasks/work_form', f: f, resource: resource
|
|
8
11
|
) %>
|
|
9
12
|
|
|
10
|
-
<div class="form-
|
|
11
|
-
|
|
13
|
+
<div class="form-group">
|
|
14
|
+
<div class="col-sm-offset-3 col-sm-9">
|
|
15
|
+
<%= f.button :submit %>
|
|
12
16
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
<%= f.button :submit, t('workflow.user.general.steps.general.cancel'), name: 'event[cancel]' %>
|
|
18
|
+
|
|
19
|
+
<%= f.button :submit, t('workflow.user.general.steps.general.skip'), name: 'event[skip]' %>
|
|
20
|
+
|
|
21
|
+
<%= f.button :submit, t('users.general.events.review'), name: 'event[review]' %>
|
|
22
|
+
|
|
23
|
+
<%= f.button :submit, t('workflow.user.general.steps.general.next'), name: 'event[next]' %>
|
|
24
|
+
</div>
|
|
20
25
|
</div>
|
|
21
26
|
<% end %>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
<div class="container-fluid">
|
|
2
|
-
<div class="row
|
|
3
|
-
<div class="
|
|
1
|
+
<div class="container-fluid" style="padding-top:0px;">
|
|
2
|
+
<div class="row">
|
|
3
|
+
<div class="col-md-6">
|
|
4
4
|
<h3><%= I18n.t('workflow.index.assigned_tasks') %></h3>
|
|
5
5
|
|
|
6
6
|
<%= render 'tasks', collection: @assigned_tasks, columns: ['name', 'story_id'] %>
|
|
7
7
|
</div>
|
|
8
|
-
<div class="
|
|
8
|
+
<div class="col-md-6">
|
|
9
9
|
<h3><%= I18n.t('workflow.index.completed_tasks') %></h3>
|
|
10
10
|
|
|
11
11
|
<%= render 'tasks', collection: @completed_tasks, columns: ['name', 'story_id'] %>
|
|
@@ -45,40 +45,40 @@ SimpleForm.setup do |config|
|
|
|
45
45
|
b.use :error, :wrap_with => { :tag => :span, :class => :error }
|
|
46
46
|
end
|
|
47
47
|
|
|
48
|
-
config.wrappers :bootstrap, :tag => 'div', :class => '
|
|
48
|
+
config.wrappers :bootstrap, :tag => 'div', :class => 'form-group', :error_class => 'error' do |b|
|
|
49
49
|
b.use :html5
|
|
50
50
|
b.use :placeholder
|
|
51
51
|
b.use :label
|
|
52
|
-
b.wrapper :tag => 'div'
|
|
52
|
+
b.wrapper :tag => 'div' do |ba|
|
|
53
53
|
ba.use :input
|
|
54
|
-
ba.use :error, :wrap_with => { :tag => 'span', :class => 'help-
|
|
54
|
+
ba.use :error, :wrap_with => { :tag => 'span', :class => 'help-block' }
|
|
55
55
|
ba.use :hint, :wrap_with => { :tag => 'p', :class => 'help-block' }
|
|
56
56
|
end
|
|
57
57
|
end
|
|
58
58
|
|
|
59
|
-
config.wrappers :prepend, :tag => 'div', :class => "
|
|
59
|
+
config.wrappers :prepend, :tag => 'div', :class => "form-group", :error_class => 'error' do |b|
|
|
60
60
|
b.use :html5
|
|
61
61
|
b.use :placeholder
|
|
62
62
|
b.use :label
|
|
63
|
-
b.wrapper :tag => 'div'
|
|
63
|
+
b.wrapper :tag => 'div' do |input|
|
|
64
64
|
input.wrapper :tag => 'div', :class => 'input-prepend' do |prepend|
|
|
65
65
|
prepend.use :input
|
|
66
66
|
end
|
|
67
67
|
input.use :hint, :wrap_with => { :tag => 'span', :class => 'help-block' }
|
|
68
|
-
input.use :error, :wrap_with => { :tag => 'span', :class => 'help-
|
|
68
|
+
input.use :error, :wrap_with => { :tag => 'span', :class => 'help-block' }
|
|
69
69
|
end
|
|
70
70
|
end
|
|
71
71
|
|
|
72
|
-
config.wrappers :append, :tag => 'div', :class => "
|
|
72
|
+
config.wrappers :append, :tag => 'div', :class => "form-group", :error_class => 'error' do |b|
|
|
73
73
|
b.use :html5
|
|
74
74
|
b.use :placeholder
|
|
75
75
|
b.use :label
|
|
76
|
-
b.wrapper :tag => 'div'
|
|
77
|
-
input.wrapper :tag => 'div', :class => 'input-
|
|
76
|
+
b.wrapper :tag => 'div' do |input|
|
|
77
|
+
input.wrapper :tag => 'div', :class => 'input-group' do |append|
|
|
78
78
|
append.use :input
|
|
79
79
|
end
|
|
80
80
|
input.use :hint, :wrap_with => { :tag => 'span', :class => 'help-block' }
|
|
81
|
-
input.use :error, :wrap_with => { :tag => 'span', :class => 'help-
|
|
81
|
+
input.use :error, :wrap_with => { :tag => 'span', :class => 'help-block' }
|
|
82
82
|
end
|
|
83
83
|
end
|
|
84
84
|
|