GlossaryLayoutView_tmpl.html 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!--
  2. * Licensed to the Apache Software Foundation (ASF) under one or more
  3. * contributor license agreements. See the NOTICE file distributed with
  4. * this work for additional information regarding copyright ownership.
  5. * The ASF licenses this file to You under the Apache License, Version 2.0
  6. * (the "License"); you may not use this file except in compliance with
  7. * the License. You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. -->
  17. <div class="col-sm-12 {{#unless isAssignView}}add-seperator{{/unless}}">
  18. <div class="row">
  19. {{#unless isAssignView}}
  20. <div class="col-sm-7 no-padding" style="margin-top: 5px;">
  21. <span class="pull-left">术语</span>
  22. <label class="switch pull-left">
  23. <input type="checkbox" class="switch-input" name="glossaryView" value="text" />
  24. <span class="switch-slider"></span>
  25. </label>
  26. <span class="pull-left">类别</span>
  27. </div>
  28. <div class="{{#if isAssignView}}col-sm-2{{else}}col-sm-5{{/if}} no-padding-right">
  29. <button type="button" class="btn btn-action btn-md pull-right" title="刷新" data-id="refreshGlossary" onclick="this.blur();" type="button"><i class="fa fa-refresh"></i></button>
  30. <button type="button" class="btn btn-action btn-md pull-right" data-id="createGlossary" type="button"><i class="fa fa-plus"></i></button>
  31. <div class="dropdown pull-right">
  32. <button type="button" data-toggle="dropdown" class="btn btn-action btn-md dropdown-toggle" type="button"><i class="fa fa-paperclip"></i></button>
  33. <ul class="dropdown-menu">
  34. <li><a href="{{importTmplUrl}}">下载导入模板</a></li>
  35. <li><a href="javascript:void(0)" data-id="importGlossary">导入术语表与术语</a></li>
  36. </ul>
  37. </div>
  38. <!-- -->
  39. {{/unless}}
  40. </div>
  41. </div>
  42. </div>
  43. <div class="row">
  44. <div class="col-sm-12">
  45. <div class="col-sm-12 text-center" data-id='glossaryTreeLoader'>
  46. <i class="fa fa-refresh fa-spin-custom"></i>
  47. </div>
  48. <div data-id='glossaryTreeView'>
  49. <div class="no-padding col-sm-12 term-view">
  50. <div>
  51. <input type="text" class="form-control" data-id="searchTerm" placeholder="{{#if isAssignView}}搜索术语{{else}}搜索术语表, 术语{{/if}}">
  52. </div>
  53. <div data-id="termTree" style="margin-top: 5px;padding-bottom: 25px;overflow-x: auto;overflow-y:hidden;">
  54. </div>
  55. </div>
  56. <div class="col-sm-12 no-padding category-view" style="display: none;">
  57. <div>
  58. <input type="text" class="form-control" data-id="searchCategory" placeholder="{{#if isAssignView}}搜索目录{{else}}搜索术语表,类别{{/if}}">
  59. </div>
  60. <div data-id="categoryTree" style="margin-top: 5px;padding-bottom: 25px;overflow-x: auto;overflow-y: hidden;">
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. </div>