-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI for setting the reason why SHF is waiting on an applicant #281
Changes from 28 commits
31414af
c823e06
44867ed
f06224f
1d3a786
ebb0f4f
0a5dd0d
4f48f4c
441df21
4a3ce00
aaa6ace
10ec808
e8cc76d
b848df6
4f75ecc
a041ef3
a44214b
b776f70
73afa63
df94ef9
ba9fc60
9b798c7
c1fbde8
bf2b195
5bf594e
e70d877
eb3b970
608d0a7
2c3c0ed
a73f2af
001a5d7
871fd64
4fdf5f5
cf0645a
05fd86d
c0d90a8
6d3b704
e5cbbaf
75a36d6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,27 @@ | ||
.member_app_waiting_reasons { | ||
#member-app-waiting-reasons { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid using id selectors |
||
|
||
input.wpcf7-form-control.is-custom { | ||
width: 3rem; | ||
margin-bottom: 1rem; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Properties should be ordered border-bottom, margin-bottom There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Properties should be ordered border-bottom, margin-bottom |
||
.row { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Rule declaration should be preceded by an empty line There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Rule declaration should be preceded by an empty line |
||
margin-top: 0; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Properties should be ordered margin-bottom, margin-top, padding-bottom, padding-top There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Properties should be ordered margin-bottom, margin-top, padding-bottom, padding-top |
||
margin-bottom: 0; | ||
padding-top: 0.5rem; | ||
padding-bottom: 0.5rem; | ||
} | ||
|
||
border-bottom: 1pt solid coral; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Expected item on line 11 to appear before line 4. Rule sets should be ordered as follows: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Expected item on line 11 to appear before line 4. Rule sets should be ordered as follows: |
||
|
||
|
||
select { | ||
height: 110%; | ||
} | ||
|
||
label { | ||
font-weight: normal; | ||
} | ||
|
||
input[type="text"] { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid qualifying attribute selectors with an element. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid qualifying attribute selectors with an element. |
||
padding: 0.3rem; | ||
width: 35rem; | ||
} | ||
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,15 +12,25 @@ def other_reason_placeholder? | |
|
||
|
||
# This is effectively a CONSTANT that is used in the UI | ||
def self.other_reason_name | ||
I18n.t('admin_only.member_app_waiting_reasons.other_custom_reason') | ||
def self.other_reason_name(locale = I18n.locale) | ||
I18n.t('admin_only.member_app_waiting_reasons.other_custom_reason', locale) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The second parameter to the translate method should be an options hash. As it stands now the locale is ignored, and the method always returns the swedish translation I18n.t('admin_only.member_app_waiting_reasons.other_custom_reason', locale: locale) |
||
end | ||
|
||
|
||
def self.other_reason_desc(locale = I18n.locale) | ||
I18n.t('admin_only.member_app_waiting_reasons.other_custom_reason_desc', locale) | ||
end | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above. |
||
|
||
|
||
|
||
def self.default_name_method | ||
:name_sv | ||
end | ||
|
||
def self.default_description_method | ||
:description_sv | ||
end | ||
|
||
end | ||
|
||
end | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,31 @@ | ||
- if @membership_application.waiting_for_applicant? | ||
= render 'reason_waiting' | ||
|
||
|
||
|
||
#admin-change-status-buttons | ||
%p.header | ||
= "#{t('membership_applications.show.change_status')}:" | ||
|
||
|
||
= button_to t('membership_applications.start_review_btn'), start_review_membership_application_path(@membership_application), {class: 'btn start-review', disabled: !(@membership_application.may_start_review?)} | ||
.row | ||
= button_to t('membership_applications.start_review_btn'), start_review_membership_application_path(@membership_application), {class: 'btn start-review', disabled: !(@membership_application.may_start_review?)} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid using instance variables in partials views |
||
|
||
= button_to t('membership_applications.accept_btn'), accept_membership_application_path(@membership_application), {class: 'btn accept', disabled: !(@membership_application.may_accept?)} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid using instance variables in partials views |
||
|
||
= button_to t('membership_applications.accept_btn'), accept_membership_application_path(@membership_application), {class: 'btn accept', disabled: !(@membership_application.may_accept?)} | ||
= button_to t('membership_applications.reject_btn'), reject_membership_application_path(@membership_application), {class: 'btn reject', disabled: !(@membership_application.may_reject?)} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid using instance variables in partials views |
||
|
||
= button_to t('membership_applications.reject_btn'), reject_membership_application_path(@membership_application), {class: 'btn reject', disabled: !(@membership_application.may_reject?)} | ||
= button_to t('membership_applications.ask_applicant_for_info_btn'), need_info_membership_application_path(@membership_application), {class: 'btn need-info', disabled: !(@membership_application.may_ask_applicant_for_info?)} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid using instance variables in partials views |
||
|
||
= button_to t('membership_applications.ask_applicant_for_info_btn'), need_info_membership_application_path(@membership_application), {class: 'btn need-info', disabled: !(@membership_application.may_ask_applicant_for_info?)} | ||
.row | ||
= button_to t('membership_applications.cancel_waiting_for_applicant_btn'), cancel_need_info_membership_application_path(@membership_application), {class: 'btn cancel-need-info', disabled: !(@membership_application.may_cancel_waiting_for_applicant?)} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid using instance variables in partials views |
||
|
||
= button_to t('membership_applications.cancel_waiting_for_applicant_btn'), cancel_need_info_membership_application_path(@membership_application), {class: 'btn cancel-need-info', disabled: !(@membership_application.may_cancel_waiting_for_applicant?)} | ||
= button_to t('membership_applications.ask_applicant_for_payment_btn'), need_payment_membership_application_path(@membership_application), {class: 'btn need-payment', disabled: !(@membership_application.may_ask_for_payment?)} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid using instance variables in partials views |
||
|
||
= button_to t('membership_applications.ask_applicant_for_payment_btn'), need_payment_membership_application_path(@membership_application), {class: 'btn need-payment', disabled: !(@membership_application.may_ask_for_payment?)} | ||
= button_to t('membership_applications.cancel_waiting_for_payment_btn'), cancel_need_payment_membership_application_path(@membership_application), {class: 'btn cancel_need-payment', disabled: !(@membership_application.may_cancel_waiting_for_payment?)} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid using instance variables in partials views |
||
|
||
= button_to t('membership_applications.cancel_waiting_for_payment_btn'), cancel_need_payment_membership_application_path(@membership_application), {class: 'btn cancel_need-payment', disabled: !(@membership_application.may_cancel_waiting_for_payment?)} | ||
= button_to t('membership_applications.received_payment_btn'), received_payment_membership_application_path(@membership_application), {class: 'btn received-payment', disabled: !(@membership_application.may_received_payment?)} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid using instance variables in partials views |
||
|
||
= button_to t('membership_applications.received_payment_btn'), received_payment_membership_application_path(@membership_application), {class: 'btn received-payment', disabled: !(@membership_application.may_received_payment?)} | ||
|
||
%br | ||
- if !@membership_application.paid? | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid using id selectors