Commit 063114ac authored by Jyhem's avatar Jyhem

[bp/r63772][FIX] Restore functionality of dynamically dsplaying appropriate...

[bp/r63772][FIX] Restore functionality of dynamically dsplaying appropriate available fields depending on the article type
parent a9b15f01
......@@ -43,7 +43,7 @@
{textarea _simple="y" name="heading" class="form-control" rows="5" id="subheading" comments="y"}{$heading}{/textarea}
{/if}
</div>
<div id='heading_only' class="form-group margin-side-0{if $types.$type.heading_only eq 'y'} hidden{/if}">
<div id='heading_only' class="form-group margin-side-0" {if $types.$type.heading_only eq 'y'}style="display: none;"{/if}>
<label for="body">{tr}Body{/tr}</label>
{textarea name="body" id="body"}{$body}{/textarea}
</div>
......@@ -117,7 +117,7 @@
<div class="form-group clearfix">
<label for="type" class="control-label col-md-4">{tr}Type{/tr}</label>
<div class="col-md-6">
<select name="type" class="form-control">
<select id='articletype' name="type" onchange='javascript:chgArtType();' class="form-control">
{foreach $types as $typei => $prop}
<option value="{$typei|escape}" {if $type eq $typei}selected="selected"{/if}>{tr}{$typei|escape}{/tr}</option>
{/foreach}
......
......@@ -224,7 +224,7 @@
{/if}
</div>
</div>
<div id='heading_only' class="form-group margin-side-0{if $types.$type.heading_only eq 'y'} hidden{/if}">
<div class="form-group" id='heading_only' {if $types.$type.heading_only eq 'y'}style="display: none;"{/if}>
<label class="col-sm-3 control-label">{tr}Body{/tr}</label>
<div class="col-sm-7">
{textarea name="body" id="body"}{$body}{/textarea}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment