You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2013/09/05 20:20:54 UTC

[29/50] git commit: [#6457] Make way for extending tmpl to hide mount fields

[#6457] Make way for extending tmpl to hide mount fields

Signed-off-by: Tim Van Steenburgh <tv...@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/9a4a8dd5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/9a4a8dd5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/9a4a8dd5

Branch: refs/heads/cj/6596
Commit: 9a4a8dd53d9aaa1c91a6bd903b1a49c644cb3278
Parents: ddac2b6
Author: Tim Van Steenburgh <tv...@gmail.com>
Authored: Wed Aug 28 16:54:52 2013 +0000
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Tue Sep 3 17:05:08 2013 +0000

----------------------------------------------------------------------
 ForgeImporters/forgeimporters/templates/importer_base.html | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/9a4a8dd5/ForgeImporters/forgeimporters/templates/importer_base.html
----------------------------------------------------------------------
diff --git a/ForgeImporters/forgeimporters/templates/importer_base.html b/ForgeImporters/forgeimporters/templates/importer_base.html
index 7a25543..b97eedf 100644
--- a/ForgeImporters/forgeimporters/templates/importer_base.html
+++ b/ForgeImporters/forgeimporters/templates/importer_base.html
@@ -64,6 +64,7 @@
 <form action="create" method="post" enctype="multipart/form-data">
   {% block importer_fields %}
   {% endblock %}
+  {% if not show_mount_fields is defined or show_mount_fields %}
   <div>
     <label for="mount_label">Label</label>
     <input name="mount_label" value="{{ c.form_values['mount_label'] or target_app.default_mount_label }}" />
@@ -74,7 +75,7 @@
     <input name="mount_point" value="{{ c.form_values['mount_point'] or target_app.default_mount_point }}" />
       {{ error('mount_point') }}
   </div>
-
+  {% endif %}
   <input type="submit" value="Import"/>
 </form>
 {% endblock %}