-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
15 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
module AgentsHelper | ||
def agent_attachment_persisted_data(attachment) | ||
return "data-persisted=true" if attachment.persisted? | ||
end | ||
module Admin | ||
module AgentsHelper | ||
def agent_attachment_persisted_data(attachment) | ||
return "data-persisted=true" if attachment.persisted? | ||
end | ||
|
||
def agent_attachment_persisted_remove_notice(attachment) | ||
return if attachment.blank? | ||
render partial: 'layouts/admin_messages', | ||
locals: { | ||
alert: t("backend.agents.attachment_destroy_notice") | ||
} | ||
end | ||
def agent_attachment_persisted_remove_notice(attachment) | ||
return if attachment.blank? | ||
render partial: 'layouts/admin_messages', | ||
locals: { | ||
alert: t("backend.agents.attachment_destroy_notice") | ||
} | ||
end | ||
|
||
def agents_public_assignments_editor(agent) | ||
agent.new_record? ? "mceNoEditor" : "tinymce" | ||
def agents_public_assignments_editor(agent) | ||
agent.new_record? ? "mceNoEditor" : "tinymce" | ||
end | ||
end | ||
end |