123456789101112131415161718192021222324252627282930313233343536373839404142 |
- {% extends "../theme.html" %}
- {% block content %}
- {%include 'inc/menu.html'%}
- <div class="left w-half">
- <div class="pannel">
- <h2><span>劳作内容设置</span> <div class="right r-btns"><a href="javascript:;" onclick="Farm.Page('添加劳作内容', '/work/category_update')" class="icons ico-add"></a></div> </h2>
- <div class="ul5">
- {% for v in data['category'] %}
- <dl>
- <dt><span>{{v['name']}}</span> <a onclick="Farm.Page('修改劳作内容分类', '/work/category_update?id={{v['id']}}')" class="icons ico-setting"></a><a href="javascript:;" onclick="Farm.Page('添加劳作内容', '/work/method_update?category={{v['id']}}')" class="icons ico-add"></a></dt>
- {% for mv in data['method'] %}
- {% if mv['category_id'] == v['id'] %}
- <dd><span>{{mv['name']}}</span><a href="javascript:;" onclick="Farm.Page('修改劳作内容', '/work/method_update?id={{mv['id']}}&category={{v['id']}}')" class="icons ico-setting"></a></dd>
- {% end %}
- {% end %}
- </dl>
- {% end %}
- </div>
- </div>
- </div>
- <div class="right w-half">
- <div class="pannel">
- <h2><span>地块儿分类</span> <div class="right r-btns"><a href="javascript:;" onclick="Farm.Page('添加地块', '/work/land_update')" class="icons ico-add"></a></div> </h2>
- <div class="ul5">
- {% if data['land'] %}
- <dl>
- {% for v in data['land'] %}
- <dd><span>{{v['name']}}</span><a onclick="Farm.Page('修改地块', '/work/land_update?id={{v['id']}}')" class="icons ico-setting"></a></dd>
- {% end %}
- </dl>
- {% end %}
-
- </div>
- </div>
- </div>
- {% end %}
- {% block script %}
- {% end %}
|