* Reformat code style.
This commit is contained in:
@@ -9,11 +9,11 @@
|
||||
* @link http://www.zentao.net
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php'; ?>
|
||||
<?php include '../../common/view/chosen.html.php'; ?>
|
||||
<?php include '../../common/view/kindeditor.html.php'; ?>
|
||||
<?php js::import($jsRoot . 'vue/vue.js'); ?>
|
||||
<?php js::set('paramsTypeOption', $lang->api->paramsScopeOptions)?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/chosen.html.php';?>
|
||||
<?php include '../../common/view/kindeditor.html.php';?>
|
||||
<?php js::import($jsRoot . 'vue/vue.js');?>
|
||||
<?php js::set('paramsTypeOption', $lang->api->paramsScopeOptions);?>
|
||||
<?php
|
||||
js::set('typeOptions', $typeOptions);
|
||||
js::set('structAdd', $lang->struct->add);
|
||||
@@ -26,25 +26,20 @@ js::set('struct_desc', $lang->struct->desc);
|
||||
js::set('struct_action', $lang->struct->action);
|
||||
js::set('struct_required', $lang->struct->required);
|
||||
js::set('struct_paramsType', $lang->struct->paramsType);
|
||||
js::set('struct', $struct)
|
||||
js::set('struct', $struct);
|
||||
?>
|
||||
<div id="app">
|
||||
<div id="mainContent" class="main-content">
|
||||
<div class='center-block'>
|
||||
<div class='main-header'>
|
||||
<h2><?php echo $lang->api->createStruct; ?></h2>
|
||||
<h2><?php echo $lang->api->createStruct;?></h2>
|
||||
</div>
|
||||
<form class="load-indicator main-form form-ajax" id="dataform" method='post' enctype='multipart/form-data'>
|
||||
<table class='table table-form'>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class='w-110px'><?php echo $lang->api->structName; ?></th>
|
||||
<td><?php echo html::input('name', $struct->name, "class='form-control' required"); ?> </td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='w-110px'><?php echo $lang->api->desc; ?></th>
|
||||
<td> <?php echo html::input('desc', $struct->desc, "class='form-control'"); ?> </td>
|
||||
<th class='w-110px'><?php echo $lang->api->structName;?></th>
|
||||
<td><?php echo html::input('name', $struct->name, "class='form-control' required");?></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -54,11 +49,15 @@ js::set('struct', $struct)
|
||||
<input type="hidden" name="attribute" v-model="attr">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='w-110px'><?php echo $lang->api->desc;?></th>
|
||||
<td colspan="2"><?php echo html::textarea('desc', $struct->desc, "class='form-control'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='3' class='text-center form-actions'>
|
||||
<?php echo html::submitButton(); ?>
|
||||
<?php if(empty($gobackLink)) echo html::backButton($lang->goback, "data-app='{$app->tab}'"); ?>
|
||||
<?php if(!empty($gobackLink)) echo html::a($gobackLink, $lang->goback, '', "class='btn btn-back btn-wide'"); ?>
|
||||
<?php echo html::submitButton();?>
|
||||
<?php if(empty($gobackLink)) echo html::backButton($lang->goback, "data-app='{$app->tab}'");?>
|
||||
<?php if(!empty($gobackLink)) echo html::a($gobackLink, $lang->goback, '', "class='btn btn-back btn-wide'");?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -67,4 +66,4 @@ js::set('struct', $struct)
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php include '../../common/view/footer.html.php'; ?>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
Reference in New Issue
Block a user