[bugzilla-gnome-org-extensions] attachment status: Implement a hook to show a combobox with statuses
- From: Krzesimir Nowak <krnowak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bugzilla-gnome-org-extensions] attachment status: Implement a hook to show a combobox with statuses
- Date: Thu, 20 Nov 2014 22:27:55 +0000 (UTC)
commit 5ff288ecd6a732062ac8533727c32555a516f4df
Author: Krzesimir Nowak <qdlacz gmail com>
Date: Wed Nov 19 12:30:20 2014 +0100
attachment status: Implement a hook to show a combobox with statuses
We use the new editable_hidden_content hook from attachment/edit.
.../edit-editable_hidden_content.html.tmpl | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/GnomeAttachmentStatus/template/en/default/hook/attachment/edit-editable_hidden_content.html.tmpl
b/GnomeAttachmentStatus/template/en/default/hook/attachment/edit-editable_hidden_content.html.tmpl
new file mode 100644
index 0000000..e860263
--- /dev/null
+++ b/GnomeAttachmentStatus/template/en/default/hook/attachment/edit-editable_hidden_content.html.tmpl
@@ -0,0 +1,16 @@
+[% gnome_attachment_js_url = 'extensions/GnomeAttachmentStatus/web/gnome_attachment_status.js' -%]
+<script type="text/javascript" src="[% gnome_attachment_js_url FILTER mtime FILTER html %]"></script>
+<div id="attachment_gnome_attachment_status_combo">
+ <input type="hidden" value="none" id="gnome_attachment_status_hidden" name="gnome_attachment_status" [% IF
attachment.ispatch %] disabled [% END %]/>
+ <b><label for="gnome_attachment_status">Status</label>:</b>
+ <select id="gnome_attachment_status_combo" name="gnome_attachment_status"
+ [% UNLESS attachment.ispatch %] disabled [% END %]>
+ [%- FOREACH gnome_attachment_status = all_gnome_attachment_status_values %]
+ <option value="[% gnome_attachment_status.value FILTER html %]"
+ [%= IF attachment.gnome_attachment_status == gnome_attachment_status.value ~%]
+ selected
+ [%~ END ~%]
+ >[% display_value("attachments.gnome_attachment_status", gnome_attachment_status.value) %]</option>
+ [%- END %]
+ </select>
+</div>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]