增加药材说明 #5

Merged
pengda merged 1 commits from wpd_textarea into master 8 months ago
  1. 13
      view/templates/admin/formula_add.html
  2. 4
      view/templates/admin/formula_list.html

13
view/templates/admin/formula_add.html

@ -46,15 +46,14 @@
<div class="row"> <div class="row">
<label for="source">药方来源<font color='red'>*</font></label> <label for="source">药方来源<font color='red'>*</font></label>
<input type="text" id="source" name="source" maxlength="" style="width:280px" value="{if $data.source}$data.source{else}伤寒杂病论{/if}"> <input type="text" id="source" name="source" maxlength="" style="width:280px" value="{if $data.source}{$data.source}{else}伤寒杂病论{/if}">
</div> </div>
<div class="row">&nbsp;</div> <div class="row">&nbsp;</div>
<div class="row"> <div class="row">
<label for="method">用法<font color='red'></font></label> <label for="method">用法<font color='red'></font></label>
<input type="text" id="method" name="method" maxlength="" style="width:280px" value="{$data.method}"> <textarea rows="3" cols="80" id="method" name="method">{$data.method}</textarea>
<span id="author_limit"></span>
</div> </div>
<div class="row">&nbsp;</div> <div class="row">&nbsp;</div>
@ -72,9 +71,9 @@
<input type="text" name="herb_name[]" value="{$item.name}" placeholder="药材名" required/> <input type="text" name="herb_name[]" value="{$item.name}" placeholder="药材名" required/>
<input type="text" name="herb_num[]" value="{$item.num_str}" <input type="text" name="herb_num[]" value="{$item.num_str}"
placeholder="用量" required/> placeholder="用量" required/>
<!-- /--> <!-- /-->
<!-- <input style="width: 80px" type="text" value="{$item.num}克" disabled/>--> <!-- <input style="width: 80px" type="text" value="{$item.num}克" disabled/>-->
<!-- <input type="text" name="herb_desc[]" value="{$item.desc}" placeholder="说明"/>--> <input type="text" name="herb_desc[]" value="{$item.desc}" placeholder="说明"/>
<button class="" type="button" onclick="removeIngredient(this)">X</button> <button class="" type="button" onclick="removeIngredient(this)">X</button>
</div> </div>
@ -123,7 +122,7 @@
<div class="herb_input"> <div class="herb_input">
<input type="text" name="herb_name[]" placeholder="药材名" required /> <input type="text" name="herb_name[]" placeholder="药材名" required />
<input type="text" name="herb_num[]" placeholder="药量" required /> <input type="text" name="herb_num[]" placeholder="药量" required />
<!-- <input type="text" name="herb_desc[]" placeholder="说明"/>--> <input type="text" name="herb_desc[]" placeholder="说明"/>
<button class="" type="button" onclick="removeIngredient(this)">X</button> <button class="" type="button" onclick="removeIngredient(this)">X</button>
</div> </div>
`; `;

4
view/templates/admin/formula_list.html

@ -83,7 +83,7 @@
<th width="50">录方者uid</th> <th width="50">录方者uid</th>
<th width="200">药方名称</th> <th width="200">药方名称</th>
<th width="200">药方来源</th> <th width="200">药方来源</th>
<th width="50">使用次数</th> <!-- <th width="50">使用次数</th>-->
<th width="200">药方详情</th> <th width="200">药方详情</th>
<th width="50">操作</th> <th width="50">操作</th>
</tr> </tr>
@ -95,7 +95,7 @@
<td>{if $item.uid eq 0}-{else}{$item.uid}{/if}</td> <td>{if $item.uid eq 0}-{else}{$item.uid}{/if}</td>
<td>{$item.name}</td> <td>{$item.name}</td>
<td>{$item.source}</td> <td>{$item.source}</td>
<td>{$item.use_num}</td> <!-- <td>{$item.use_num}</td>-->
<td style="display: flex;flex-wrap: wrap"> <td style="display: flex;flex-wrap: wrap">
{foreach from=$item.formula item=value} {foreach from=$item.formula item=value}
<span style="margin-right: 20px">{$value.name} {$value.num_str}</span> <span style="margin-right: 20px">{$value.name} {$value.num_str}</span>

Loading…
Cancel
Save