#1080 EasyExtensions buttons
This commit is contained in:
parent
a529022377
commit
4b57453f00
@ -128,7 +128,9 @@
|
|||||||
<p><%= custom_field_tag_with_label(:dmsf_folder, value) %></p>
|
<p><%= custom_field_tag_with_label(:dmsf_folder, value) %></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<p><%= submit_tag(create ? l(:submit_create) : l(:submit_save)) %></p>
|
<div class="form-actions">
|
||||||
|
<%= submit_tag(create ? l(:button_create) : l(:submit_save), class: 'button-positive') %>
|
||||||
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= wikitoolbar_for 'dmsf_folder_description' %>
|
<%= wikitoolbar_for 'dmsf_folder_description' %>
|
||||||
|
|||||||
@ -47,8 +47,10 @@
|
|||||||
<p>
|
<p>
|
||||||
<%= f.text_area :dmsf_description, rows: 8, class: 'wiki-edit', label: l(:field_description) %>
|
<%= f.text_area :dmsf_description, rows: 8, class: 'wiki-edit', label: l(:field_description) %>
|
||||||
</p>
|
</p>
|
||||||
|
<div class="form-actions">
|
||||||
|
<%= f.submit l(:submit_save), class: 'button-positive' %>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<%= f.submit l(:submit_save) %>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= wikitoolbar_for 'project_dmsf_description' %>
|
<%= wikitoolbar_for 'project_dmsf_description' %>
|
||||||
|
|||||||
@ -27,34 +27,34 @@
|
|||||||
<%= render partial: 'path', locals: { folder: @folder, filename: nil, title: l(:heading_send_documents_by_email) } %>
|
<%= render partial: 'path', locals: { folder: @folder, filename: nil, title: l(:heading_send_documents_by_email) } %>
|
||||||
|
|
||||||
<%= form_tag(email_entries_path(id: @project, folder_id: @folder), { method: :post }) do %>
|
<%= form_tag(email_entries_path(id: @project, folder_id: @folder), { method: :post }) do %>
|
||||||
<%= hidden_field_tag('email[zipped_content]', @email_params[:zipped_content]) %>
|
<%= hidden_field_tag 'email[zipped_content]', @email_params[:zipped_content] %>
|
||||||
<%= hidden_field_tag('email[folders]', @email_params[:folders].to_json) %>
|
<%= hidden_field_tag 'email[folders]', @email_params[:folders].to_json %>
|
||||||
<%= hidden_field_tag('email[files]', @email_params[:files].to_json) %>
|
<%= hidden_field_tag 'email[files]', @email_params[:files].to_json %>
|
||||||
<%= hidden_field_tag('email[from]', @email_params[:from]) %>
|
<%= hidden_field_tag 'email[from]', @email_params[:from] %>
|
||||||
<%= hidden_field_tag('email[reply_to]', @email_params[:reply_to]) %>
|
<%= hidden_field_tag 'email[reply_to]', @email_params[:reply_to] %>
|
||||||
<div class="box tabular">
|
<div class="box tabular">
|
||||||
<p>
|
<p>
|
||||||
<%= label_tag('', l(:label_email_from)) %>
|
<%= label_tag '', l(:label_email_from) %>
|
||||||
<%= text_field_tag('email[from_disabled]', @email_params[:from], style: 'width: 90%;', disabled: true) %>
|
<%= text_field_tag 'email[from_disabled]', @email_params[:from], class: 'dmsf-full-width', disabled: true %>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<%= label_tag('email[to]', l(:label_email_to)) %>
|
<%= label_tag 'email[to]', l(:label_email_to) %>
|
||||||
<span>
|
<span>
|
||||||
<%= text_field_tag('email[to]', @email_params[:to], style: 'width: 90%;', required: true) %>
|
<%= text_field_tag 'email[to]', @email_params[:to], class: 'dmsf-full-width', required: true %>
|
||||||
<%= link_to l(:button_add), add_email_dmsf_path(project_id: @project),
|
<%= link_to l(:button_add), add_email_dmsf_path(project_id: @project),
|
||||||
title: l(:label_email_address_add), class: 'icon icon-add', remote: true %>
|
title: l(:label_email_address_add), class: 'icon icon-add', remote: true %>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<%= label_tag('email[cc]', l(:label_email_cc)) %>
|
<%= label_tag 'email[cc]', l(:label_email_cc) %>
|
||||||
<%= text_field_tag('email[cc]', @email_params[:cc], style: 'width: 90%;') %>
|
<%= text_field_tag 'email[cc]', @email_params[:cc], class: 'dmsf-full-width' %>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<%= label_tag('email[subject]', l(:label_email_subject)) %>
|
<%= label_tag 'email[subject]', l(:label_email_subject) %>
|
||||||
<%= text_field_tag('email[subject]', @email_params[:subject], style: 'width: 90%;') %>
|
<%= text_field_tag 'email[subject]', @email_params[:subject], class: 'dmsf-full-width' %>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<%= label_tag('', l(:label_email_documents)) %>
|
<%= label_tag '', l(:label_email_documents) %>
|
||||||
<span>
|
<span>
|
||||||
<%= link_to 'Documents.zip', download_email_entries_path(id: @project, folder_id: @folder,
|
<%= link_to 'Documents.zip', download_email_entries_path(id: @project, folder_id: @folder,
|
||||||
path: @email_params[:zipped_content]) %>
|
path: @email_params[:zipped_content]) %>
|
||||||
@ -67,11 +67,13 @@
|
|||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<%= label_tag('email[body]', l(:label_email_body)) %>
|
<%= label_tag 'email[body]', l(:label_email_body) %>
|
||||||
<%= text_area_tag('email[body]', @email_params['body'], rows: '20', style: 'width: 90%;') %>
|
<%= text_area_tag 'email[body]', @email_params['body'], rows: '20', class: 'dmsf-full-width' %>
|
||||||
</p>
|
</p>
|
||||||
|
<div class="form-actions">
|
||||||
|
<%= submit_tag l(:label_email_send), class: 'button-positive' %>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p><%= submit_tag(l(:label_email_send)) %></p>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= wikitoolbar_for 'email_body' %>
|
<%= wikitoolbar_for 'email_body' %>
|
||||||
|
|||||||
@ -87,7 +87,9 @@
|
|||||||
<p>
|
<p>
|
||||||
<%= f.text_area :comment, rows: 2, label: l(:label_comment), class: 'wiki-edit' %>
|
<%= f.text_area :comment, rows: 2, label: l(:label_comment), class: 'wiki-edit' %>
|
||||||
</p>
|
</p>
|
||||||
<%= f.submit l(:submit_create) %>
|
<div class="form-actions">
|
||||||
|
<%= f.submit l(:button_create), class: 'button-positive' %>
|
||||||
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -104,14 +104,14 @@
|
|||||||
<p>
|
<p>
|
||||||
<%= f.text_field :name, required: true, max_length: 255 %>
|
<%= f.text_field :name, required: true, max_length: 255 %>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
<div class="form-actions">
|
||||||
<p>
|
|
||||||
<% if modal %>
|
<% if modal %>
|
||||||
<%= f.submit l(:button_create), onclick: 'hideModal(this);' %>
|
<%= f.submit l(:button_create), class: 'button-positive', onclick: 'hideModal(this);' %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= f.submit l(:button_create) %>
|
<%= f.submit l(:button_create), class: 'button-positive' %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</p>
|
</div>
|
||||||
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= late_javascript_tag do %>
|
<%= late_javascript_tag do %>
|
||||||
|
|||||||
@ -33,7 +33,7 @@
|
|||||||
<fieldset class="box tabular">
|
<fieldset class="box tabular">
|
||||||
<legend><%= l(:link_user_preferences) %></legend>
|
<legend><%= l(:link_user_preferences) %></legend>
|
||||||
<p>
|
<p>
|
||||||
<%= content_tag(:label, l(:label_notifications)) %>
|
<%= content_tag :label, l(:label_notifications) %>
|
||||||
<%= select_tag 'email_notify',
|
<%= select_tag 'email_notify',
|
||||||
options_for_select([[l(:select_option_default), nil],
|
options_for_select([[l(:select_option_default), nil],
|
||||||
[l(:select_option_activated), true], [l(:select_option_deactivated), false]],
|
[l(:select_option_activated), true], [l(:select_option_deactivated), false]],
|
||||||
@ -65,5 +65,7 @@
|
|||||||
</p>
|
</p>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<% end %>
|
<% end %>
|
||||||
<%= submit_tag l(:submit_save), title: l(:title_save_preferences) %>
|
<div class="form-actions">
|
||||||
|
<%= submit_tag l(:submit_save), title: l(:title_save_preferences), class: 'button-positive' %>
|
||||||
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
@ -24,7 +24,7 @@
|
|||||||
locals: { folder: @folder, filename: nil, title: l(:label_attachment_new) } %>
|
locals: { folder: @folder, filename: nil, title: l(:label_attachment_new) } %>
|
||||||
<%= form_tag({ controller: 'dmsf_upload', action: 'upload_files', id: @project, folder_id: @folder },
|
<%= form_tag({ controller: 'dmsf_upload', action: 'upload_files', id: @project, folder_id: @folder },
|
||||||
id: 'uploadform', method: :post, multipart: true) do %>
|
id: 'uploadform', method: :post, multipart: true) do %>
|
||||||
<div>
|
<div class="box tabular">
|
||||||
<span class="dmsf-uploader">
|
<span class="dmsf-uploader">
|
||||||
<%= render partial: 'dmsf_upload/form',
|
<%= render partial: 'dmsf_upload/form',
|
||||||
locals: { multiple: true, container: nil, description: true, awf: false } %>
|
locals: { multiple: true, container: nil, description: true, awf: false } %>
|
||||||
|
|||||||
@ -61,7 +61,8 @@
|
|||||||
|
|
||||||
<% if @project %>
|
<% if @project %>
|
||||||
<p>
|
<p>
|
||||||
<%= link_to l(:label_dmsf_workflow_new), new_dmsf_workflow_path(project_id: @project.id), class: 'icon icon-add' %>
|
<%= link_to l(:label_dmsf_workflow_new), new_dmsf_workflow_path(project_id: @project.id),
|
||||||
|
class: 'button button-positive icon icon-add' %>
|
||||||
</p>
|
</p>
|
||||||
<% else %>
|
<% else %>
|
||||||
<% if @workflow_pages %>
|
<% if @workflow_pages %>
|
||||||
|
|||||||
@ -39,11 +39,13 @@
|
|||||||
<%= f.text_field :name, required: true %>
|
<%= f.text_field :name, required: true %>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<%= f.select(:id, dmsf_all_workflows_for_select(params[:dmsf_workflow] ? params[:dmsf_workflow][:id] : nil),
|
<%= f.select :id, dmsf_all_workflows_for_select(params[:dmsf_workflow] ? params[:dmsf_workflow][:id] : nil),
|
||||||
label: l(:label_copy_workflow_from)) %>
|
label: l(:label_copy_workflow_from) %>
|
||||||
</p>
|
</p>
|
||||||
|
<div class="form-actions">
|
||||||
|
<%= f.submit l(:button_create), class: 'button-positive' %>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<%= f.submit l(:button_create) %>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= late_javascript_tag do %>
|
<%= late_javascript_tag do %>
|
||||||
|
|||||||
@ -336,12 +336,18 @@ div[id*="revision_access_"] {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Email form */
|
||||||
|
[id^='email_'].dmsf-full-width {
|
||||||
|
width: 90%;
|
||||||
|
max-width: 90%;
|
||||||
|
}
|
||||||
|
|
||||||
/* EasyExtensions - font icons */
|
/* EasyExtensions - font icons */
|
||||||
.icon-actions::before {
|
.icon-actions::before {
|
||||||
content: "\F1D8" !important;
|
content: "\F1D8" !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*.icon-only {
|
/* EasyExtensions - Approval workflows */
|
||||||
overflow: hidden;
|
#tab-content-dmsf_workflow table.list ~ p .button {
|
||||||
display: inline-block;
|
margin-top: 10px;
|
||||||
}*/
|
}
|
||||||
@ -67,7 +67,6 @@ cs:
|
|||||||
notice_file_notifications_deactivated: Notifikace souboru byly deaktivovány
|
notice_file_notifications_deactivated: Notifikace souboru byly deaktivovány
|
||||||
link_details: "%{title} detaily"
|
link_details: "%{title} detaily"
|
||||||
link_edit: "Upravit %{title}"
|
link_edit: "Upravit %{title}"
|
||||||
submit_create: Vytvořit
|
|
||||||
link_create_folder: Vytvořit složku
|
link_create_folder: Vytvořit složku
|
||||||
link_title: Název
|
link_title: Název
|
||||||
link_size: Velikost
|
link_size: Velikost
|
||||||
|
|||||||
@ -67,7 +67,6 @@ de:
|
|||||||
notice_file_notifications_deactivated: Dateibenachrichtigungen deaktiviert
|
notice_file_notifications_deactivated: Dateibenachrichtigungen deaktiviert
|
||||||
link_details: "%{title} Details"
|
link_details: "%{title} Details"
|
||||||
link_edit: "Bearbeite %{title}"
|
link_edit: "Bearbeite %{title}"
|
||||||
submit_create: Erstellen
|
|
||||||
link_create_folder: Ordner erstellen
|
link_create_folder: Ordner erstellen
|
||||||
link_title: Titel
|
link_title: Titel
|
||||||
link_size: Größe
|
link_size: Größe
|
||||||
|
|||||||
@ -67,7 +67,6 @@ en:
|
|||||||
notice_file_notifications_deactivated: File notifications deactivated
|
notice_file_notifications_deactivated: File notifications deactivated
|
||||||
link_details: "%{title} details"
|
link_details: "%{title} details"
|
||||||
link_edit: "Edit %{title}"
|
link_edit: "Edit %{title}"
|
||||||
submit_create: Create
|
|
||||||
link_create_folder: Create folder
|
link_create_folder: Create folder
|
||||||
link_title: Title
|
link_title: Title
|
||||||
link_size: Size
|
link_size: Size
|
||||||
|
|||||||
@ -67,7 +67,6 @@ es:
|
|||||||
notice_file_notifications_deactivated: Notificación de archivo desactivada
|
notice_file_notifications_deactivated: Notificación de archivo desactivada
|
||||||
link_details: "%{title} detalles"
|
link_details: "%{title} detalles"
|
||||||
link_edit: "Editar %{title}"
|
link_edit: "Editar %{title}"
|
||||||
submit_create: Crear
|
|
||||||
link_create_folder: Crear Directorio
|
link_create_folder: Crear Directorio
|
||||||
link_title: Titulo
|
link_title: Titulo
|
||||||
link_size: Tamaño
|
link_size: Tamaño
|
||||||
|
|||||||
@ -67,7 +67,6 @@ fr:
|
|||||||
notice_file_notifications_deactivated: Les notifications du fichier ont été désactivés
|
notice_file_notifications_deactivated: Les notifications du fichier ont été désactivés
|
||||||
link_details: "Détails de %{title}"
|
link_details: "Détails de %{title}"
|
||||||
link_edit: "Modification du dossier %{title}"
|
link_edit: "Modification du dossier %{title}"
|
||||||
submit_create: Ajouter
|
|
||||||
link_create_folder: Créer un sous-dossier
|
link_create_folder: Créer un sous-dossier
|
||||||
link_title: Titre
|
link_title: Titre
|
||||||
link_size: Taille
|
link_size: Taille
|
||||||
|
|||||||
@ -67,7 +67,6 @@ hu:
|
|||||||
notice_file_notifications_deactivated: Fájl értesítések kikapcsolva
|
notice_file_notifications_deactivated: Fájl értesítések kikapcsolva
|
||||||
link_details: "%{title} részletek"
|
link_details: "%{title} részletek"
|
||||||
link_edit: "%{title} szerkesztése"
|
link_edit: "%{title} szerkesztése"
|
||||||
submit_create: Létrehozás
|
|
||||||
link_create_folder: Mappa létrehozása
|
link_create_folder: Mappa létrehozása
|
||||||
link_title: Cím
|
link_title: Cím
|
||||||
link_size: Méret
|
link_size: Méret
|
||||||
|
|||||||
@ -67,7 +67,6 @@ it: # Italian strings thx 2 Matteo Arceci!
|
|||||||
notice_file_notifications_deactivated: La notifica su documento è disattiva
|
notice_file_notifications_deactivated: La notifica su documento è disattiva
|
||||||
link_details: "%{title} dettagli"
|
link_details: "%{title} dettagli"
|
||||||
link_edit: "Modifica %{title}"
|
link_edit: "Modifica %{title}"
|
||||||
submit_create: Creato
|
|
||||||
link_create_folder: Creata cartella
|
link_create_folder: Creata cartella
|
||||||
link_title: Nome documento
|
link_title: Nome documento
|
||||||
link_size: Dimensioni
|
link_size: Dimensioni
|
||||||
|
|||||||
@ -67,7 +67,6 @@ ja:
|
|||||||
notice_file_notifications_deactivated: ファイル通知を無効にしました
|
notice_file_notifications_deactivated: ファイル通知を無効にしました
|
||||||
link_details: "%{title} の詳細を表示"
|
link_details: "%{title} の詳細を表示"
|
||||||
link_edit: "%{title} を編集"
|
link_edit: "%{title} を編集"
|
||||||
submit_create: 作成
|
|
||||||
link_create_folder: フォルダ作成
|
link_create_folder: フォルダ作成
|
||||||
link_title: タイトル
|
link_title: タイトル
|
||||||
link_size: サイズ
|
link_size: サイズ
|
||||||
|
|||||||
@ -67,7 +67,6 @@ ko:
|
|||||||
notice_file_notifications_deactivated: 파일 알림이 비활성화 되었습니다
|
notice_file_notifications_deactivated: 파일 알림이 비활성화 되었습니다
|
||||||
link_details: "%{title} 상세 내역"
|
link_details: "%{title} 상세 내역"
|
||||||
link_edit: "%{title} 수정"
|
link_edit: "%{title} 수정"
|
||||||
submit_create: 작성
|
|
||||||
link_create_folder: 폴더 작성
|
link_create_folder: 폴더 작성
|
||||||
link_title: 제목
|
link_title: 제목
|
||||||
link_size: 크기
|
link_size: 크기
|
||||||
|
|||||||
@ -67,7 +67,6 @@ nl:
|
|||||||
notice_file_notifications_deactivated: Meldingen bestand gedeactiveerd
|
notice_file_notifications_deactivated: Meldingen bestand gedeactiveerd
|
||||||
link_details: "%{title} details"
|
link_details: "%{title} details"
|
||||||
link_edit: "Aanpassen %{title}"
|
link_edit: "Aanpassen %{title}"
|
||||||
submit_create: Aanmaken
|
|
||||||
link_create_folder: Maak map
|
link_create_folder: Maak map
|
||||||
link_title: Titel
|
link_title: Titel
|
||||||
link_size: Bestandsgrootte
|
link_size: Bestandsgrootte
|
||||||
|
|||||||
@ -67,7 +67,6 @@ pl:
|
|||||||
notice_file_notifications_deactivated: Wyłączono powiadomienia dla pliku
|
notice_file_notifications_deactivated: Wyłączono powiadomienia dla pliku
|
||||||
link_details: "szczegóły %{title}"
|
link_details: "szczegóły %{title}"
|
||||||
link_edit: "Edytuj %{title}"
|
link_edit: "Edytuj %{title}"
|
||||||
submit_create: Utwórz
|
|
||||||
link_create_folder: Utwórz folder
|
link_create_folder: Utwórz folder
|
||||||
link_title: Tytuł
|
link_title: Tytuł
|
||||||
link_size: Rozmiar
|
link_size: Rozmiar
|
||||||
|
|||||||
@ -67,7 +67,6 @@ pt-BR:
|
|||||||
notice_file_notifications_deactivated: Notificações de arquivo desativadas
|
notice_file_notifications_deactivated: Notificações de arquivo desativadas
|
||||||
link_details: "%{title} detalhes"
|
link_details: "%{title} detalhes"
|
||||||
link_edit: "Editar %{title}"
|
link_edit: "Editar %{title}"
|
||||||
submit_create: Criar
|
|
||||||
link_create_folder: Criar pasta
|
link_create_folder: Criar pasta
|
||||||
link_title: Taxonomia
|
link_title: Taxonomia
|
||||||
link_size: Tamanho do arquivo
|
link_size: Tamanho do arquivo
|
||||||
|
|||||||
@ -67,7 +67,6 @@ ru:
|
|||||||
notice_file_notifications_deactivated: Уведомления файла отключены
|
notice_file_notifications_deactivated: Уведомления файла отключены
|
||||||
link_details: "Подробности %{title}"
|
link_details: "Подробности %{title}"
|
||||||
link_edit: "Редактировать %{title}"
|
link_edit: "Редактировать %{title}"
|
||||||
submit_create: Создать
|
|
||||||
link_create_folder: Создать папку
|
link_create_folder: Создать папку
|
||||||
link_title: Название
|
link_title: Название
|
||||||
link_size: Размер
|
link_size: Размер
|
||||||
|
|||||||
@ -67,7 +67,6 @@ sl:
|
|||||||
notice_file_notifications_deactivated: Obveščanje o datoteki je deaktivirano
|
notice_file_notifications_deactivated: Obveščanje o datoteki je deaktivirano
|
||||||
link_details: "%{title} podrobnosti"
|
link_details: "%{title} podrobnosti"
|
||||||
link_edit: "Uredi %{title}"
|
link_edit: "Uredi %{title}"
|
||||||
submit_create: Kreiraj
|
|
||||||
link_create_folder: Kreiraj mapo
|
link_create_folder: Kreiraj mapo
|
||||||
link_title: Naslov
|
link_title: Naslov
|
||||||
link_size: Velikost
|
link_size: Velikost
|
||||||
|
|||||||
@ -67,7 +67,6 @@ zh-TW:
|
|||||||
notice_file_notifications_deactivated: 檔案通知己關閉
|
notice_file_notifications_deactivated: 檔案通知己關閉
|
||||||
link_details: "%{title} 描述"
|
link_details: "%{title} 描述"
|
||||||
link_edit: "編輯 %{title}"
|
link_edit: "編輯 %{title}"
|
||||||
submit_create: 建立
|
|
||||||
link_create_folder: 建立資料夾
|
link_create_folder: 建立資料夾
|
||||||
link_title: 標題
|
link_title: 標題
|
||||||
link_size: 檔案大小
|
link_size: 檔案大小
|
||||||
|
|||||||
@ -67,7 +67,6 @@ zh:
|
|||||||
notice_file_notifications_deactivated: 文件通知注销
|
notice_file_notifications_deactivated: 文件通知注销
|
||||||
link_details: "%{title} 详情"
|
link_details: "%{title} 详情"
|
||||||
link_edit: "编辑 %{title}"
|
link_edit: "编辑 %{title}"
|
||||||
submit_create: 创建
|
|
||||||
link_create_folder: 创建文件夹
|
link_create_folder: 创建文件夹
|
||||||
link_title: 主题
|
link_title: 主题
|
||||||
link_size: 大小
|
link_size: 大小
|
||||||
|
|||||||
@ -26,8 +26,7 @@ module RedmineDmsf
|
|||||||
|
|
||||||
# TODO: *.css are twice there
|
# TODO: *.css are twice there
|
||||||
def view_layouts_base_html_head(context={})
|
def view_layouts_base_html_head(context={})
|
||||||
#return if defined?(EasyExtensions)
|
return unless context[:controller].class.name.match?(/^(Dmsf|Projects)/)
|
||||||
return unless context[:controller].class.name.match?(/^Dmsf/)
|
|
||||||
meta = "\n".html_safe + stylesheet_link_tag('redmine_dmsf.css', plugin: :redmine_dmsf) +
|
meta = "\n".html_safe + stylesheet_link_tag('redmine_dmsf.css', plugin: :redmine_dmsf) +
|
||||||
"\n".html_safe + stylesheet_link_tag('select2.min.css', plugin: :redmine_dmsf) +
|
"\n".html_safe + stylesheet_link_tag('select2.min.css', plugin: :redmine_dmsf) +
|
||||||
"\n".html_safe + javascript_include_tag('select2.min.js', plugin: :redmine_dmsf, defer: true) +
|
"\n".html_safe + javascript_include_tag('select2.min.js', plugin: :redmine_dmsf, defer: true) +
|
||||||
@ -37,22 +36,10 @@ module RedmineDmsf
|
|||||||
if defined?(EasyExtensions)
|
if defined?(EasyExtensions)
|
||||||
meta << "\n".html_safe + javascript_include_tag('jquery-2.2.4-ui-1.11.0-ujs-5.2.3', 'application')
|
meta << "\n".html_safe + javascript_include_tag('jquery-2.2.4-ui-1.11.0-ujs-5.2.3', 'application')
|
||||||
meta << "\n".html_safe + javascript_include_tag('context_menu', 'application')
|
meta << "\n".html_safe + javascript_include_tag('context_menu', 'application')
|
||||||
#meta << "\n".html_safe + javascript_include_tag('responsive', 'application')
|
|
||||||
end
|
end
|
||||||
meta
|
meta
|
||||||
end
|
end
|
||||||
|
|
||||||
# def easy_extensions_javascripts_hook(context={})
|
|
||||||
# context[:template].require_asset('select2.min.js')
|
|
||||||
# context[:template].require_asset('redmine_dmsf.js')
|
|
||||||
# context[:template].require_asset('attachments_dmsf.js')
|
|
||||||
# end
|
|
||||||
#
|
|
||||||
# def easy_extensions_stylesheets_hook(context={})
|
|
||||||
# context[:template].require_asset('redmine_dmsf.css')
|
|
||||||
# context[:template].require_asset('select2.min.css')
|
|
||||||
# end
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
Loading…
x
Reference in New Issue
Block a user