summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorspiderr <spiderr@bitweaver.org>2019-04-17 10:27:40 -0400
committerspiderr <spiderr@bitweaver.org>2019-04-17 10:27:40 -0400
commitc56a84224a60bdb897b1e0842116b6a306b53de3 (patch)
treec67facdbcc1b48dd6d722e10a853a41949743fda /templates
parent22ae507450d274b32ad35a4f63b4080f50ecb50a (diff)
downloadboards-c56a84224a60bdb897b1e0842116b6a306b53de3.tar.gz
boards-c56a84224a60bdb897b1e0842116b6a306b53de3.tar.bz2
boards-c56a84224a60bdb897b1e0842116b6a306b53de3.zip
fix {form} tag to wrap submit buttons
Diffstat (limited to 'templates')
-rw-r--r--templates/board_edit.tpl35
1 files changed, 13 insertions, 22 deletions
diff --git a/templates/board_edit.tpl b/templates/board_edit.tpl
index e4d97d4..b64af5b 100644
--- a/templates/board_edit.tpl
+++ b/templates/board_edit.tpl
@@ -33,40 +33,31 @@
</div>
<div class="body">
+ {form enctype="multipart/form-data" id="editbitboardform"}
{jstabs}
- {if $gContent->isValid()}
- {assign var='leg' value=$gContent->getTitle()|escape}
- {assign var='leg' value="Edit Board: $leg"}
- {else}
- {assign var='leg' value='Create Board'}
- {/if}
{jstab title=$leg}
- {form enctype="multipart/form-data" id="editbitboardform"}
- {legend legend=$leg}
- <input type="hidden" name="bitboard[board_id]" value="{$gContent->mInfo.board_id}" />
+ <input type="hidden" name="bitboard[board_id]" value="{$gContent->mInfo.board_id}" />
- <div class="form-group">
- {formlabel label="Title" for="title"}
- {forminput}
- <input type="text" size="50" maxlength="200" name="bitboard[title]" id="title" value="{$gContent->getTitle()|escape}" />
- {/forminput}
- </div>
+ <div class="form-group">
+ {formlabel label="Title" for="title"}
+ {forminput}
+ <input type="text" class="form-control" maxlength="200" name="bitboard[title]" id="title" value="{$gContent->getTitle()|escape}" />
+ {/forminput}
+ </div>
- {textarea name="bitboard[edit]" edit=$gContent->mInfo.data}
+ {textarea name="bitboard[edit]" edit=$gContent->mInfo.data}
- {* any simple service edit options *}
- {include file="bitpackage:liberty/edit_services_inc.tpl" serviceFile="content_edit_mini_tpl"}
-
- {/legend}
- {/form}
+ {* any simple service edit options *}
+ {include file="bitpackage:liberty/edit_services_inc.tpl" serviceFile="content_edit_mini_tpl"}
{/jstab}
- {* any service edit template tabs *}
+
{include file="bitpackage:liberty/edit_services_inc.tpl" serviceFile="content_edit_tab_tpl"}
{/jstabs}
<div class="form-group submit">
<input type="submit" class="btn btn-primary" name="save_bitboard" value="{tr}Save{/tr}" /> <input type="submit" class="btn btn-default" name="preview" value="{tr}Preview{/tr}" />
</div>
+ {/form}
</div><!-- end .body -->
</div><!-- end .boards -->