set.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {% extends "../theme.html" %}
  2. {% block content %}
  3. {%include 'inc/menu.html'%}
  4. <div class="left w-half">
  5. <div class="pannel">
  6. <h2><span>劳作内容设置</span> <div class="right r-btns"><a href="javascript:;" onclick="Farm.Page('添加劳作内容', '/work/category_update')" class="icons ico-add"></a></div> </h2>
  7. <div class="ul5">
  8. {% for v in data['category'] %}
  9. <dl>
  10. <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>
  11. {% for mv in data['method'] %}
  12. {% if mv['category_id'] == v['id'] %}
  13. <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>
  14. {% end %}
  15. {% end %}
  16. </dl>
  17. {% end %}
  18. </div>
  19. </div>
  20. </div>
  21. <div class="right w-half">
  22. <div class="pannel">
  23. <h2><span>地块儿分类</span> <div class="right r-btns"><a href="javascript:;" onclick="Farm.Page('添加地块', '/work/land_update')" class="icons ico-add"></a></div> </h2>
  24. <div class="ul5">
  25. {% if data['land'] %}
  26. <dl>
  27. {% for v in data['land'] %}
  28. <dd><span>{{v['name']}}</span><a onclick="Farm.Page('修改地块', '/work/land_update?id={{v['id']}}')" class="icons ico-setting"></a></dd>
  29. {% end %}
  30. </dl>
  31. {% end %}
  32. </div>
  33. </div>
  34. </div>
  35. {% end %}
  36. {% block script %}
  37. {% end %}