From bad99edd4c682bab9b3902b8b4224effbcb350f2 Mon Sep 17 00:00:00 2001 From: leigh-mil Date: Mon, 10 Jun 2019 15:26:00 -0400 Subject: [PATCH] Add nav bar to TO form --- styles/components/_sticky_cta.scss | 16 ++++++++++++++++ templates/task_orders/edit.html | 26 ++++++++++++++++---------- 2 files changed, 32 insertions(+), 10 deletions(-) diff --git a/styles/components/_sticky_cta.scss b/styles/components/_sticky_cta.scss index 3cc52556..2916018f 100644 --- a/styles/components/_sticky_cta.scss +++ b/styles/components/_sticky_cta.scss @@ -36,4 +36,20 @@ .sticky-cta-buttons { display: flex; + + .action-group { + margin: 0; + + a.action-group__action.icon-link { + width: auto; + + } + + input { + margin: $gap $gap * 1.5 $gap 0; + width: 19rem; + height: 3.2rem; + font-size: $small-font-size; + } + } } diff --git a/templates/task_orders/edit.html b/templates/task_orders/edit.html index a0dc0b04..174287fe 100644 --- a/templates/task_orders/edit.html +++ b/templates/task_orders/edit.html @@ -2,8 +2,9 @@ {% from 'components/date_picker.html' import DatePicker %} {% from 'components/icon.html' import Icon %} -{% from 'components/save_button.html' import SaveButton %} {% from 'components/options_input.html' import OptionsInput %} +{% from 'components/save_button.html' import SaveButton %} +{% from "components/sticky_cta.html" import StickyCTA %} {% from 'components/text_input.html' import TextInput %} {% from 'components/upload_input.html' import UploadInput %} @@ -71,6 +72,18 @@ {% endmacro %} {% block portfolio_content %} + + {% call StickyCTA(text="Add Funding") %} + + + + + {{ "common.cancel" | translate }} + + + {% endcall %}
{% include "fragments/flash.html" %} @@ -81,15 +94,8 @@ {% endif %}
{{ form.csrf_token }} - - Add Funding - - - {{ "common.cancel" | translate }} - - + +

{{ "task_orders.new.form_help_text" | translate }}