diff --git a/app/views/dashboard/_poll_resource.html.erb b/app/views/dashboard/_poll_resource.html.erb index 6e05a1ab0..774ff28f9 100644 --- a/app/views/dashboard/_poll_resource.html.erb +++ b/app/views/dashboard/_poll_resource.html.erb @@ -1,24 +1,15 @@ <% if can?(:manage_polls, proposal) %> -
-
" - data-position="bottom" data-alignment="right"> -
-

- -

-

<%= t("dashboard.menu.polls") %>

-

- <%= Setting['proposals.poll_short_title'] %> -

-
+
+
+

<%= t("dashboard.menu.polls") %>

+

+ <%= Setting['proposals.poll_short_title'] %> +

-
-
- <%= link_to t("dashboard.resource.request_resource"), +
+ <%= link_to t("dashboard.resource.view_resource"), proposal_dashboard_polls_path(proposal.to_param), - class: 'button primary' %> -
+ class: "button expanded" %>
diff --git a/app/views/dashboard/polls/_form.html.erb b/app/views/dashboard/polls/_form.html.erb index d2e953482..0b856dd71 100644 --- a/app/views/dashboard/polls/_form.html.erb +++ b/app/views/dashboard/polls/_form.html.erb @@ -1,27 +1,27 @@ <%= form_for [proposal, :dashboard, poll] do |f| %> -
+
<%= f.text_field :name %>
-
-
+
+
<%= f.text_field :starts_at, value: poll.starts_at.present? ? l(poll.starts_at.to_date) : nil, class: "js-calendar-full" %>
-
+
<%= f.text_field :ends_at, value: poll.ends_at.present? ? l(poll.ends_at.to_date) : nil, class: "js-calendar-full" %>
-
+
- <%=f.text_area :description, rows: 8%> + <%= f.text_area :description, rows: 8 %>
@@ -30,15 +30,16 @@ <%= render 'question_fields', f: question %> <% end %> -