Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision d04d57fd

Von Bernd Bleßmann vor etwa 3 Jahren hinzugefügt

  • ID d04d57fdb3e955daa37cf650d887d2e06f06e90c
  • Vorgänger a9107c90
  • Nachfolger 86dcebf0

Dateimanagement: Upload per Drag/Drop

Unterschiede anzeigen:

templates/webpages/file/list.html
1 1
[%- USE LxERP -%][% USE L %]
2
[% USE T8 %]
2 3
[%- IF ! json %]
3 4
 <div id="[% file_type %]_list_[% object_type %]">
4 5
[%- END %]
......
81 82
    [%- can_rename = 1 %]
82 83
    [% L.button_tag("kivi.File.rename(" _ object_id _ ",'" _ object_type _ "','" _ file_type _ "','" _ checkname _ "'," _ is_global _ ");",  source.rename_title ) %]
83 84
   [%- END %]
84
   [%- IF source.can_upload %]
85
    [% L.button_tag("kivi.File.upload(" _ object_id _ ",'" _ object_type _ "','" _ file_type _ "','" _ source.upload_title _ "'," _ is_global _ ");", source.upload_title ) %]
86
   [%- END %]
87 85
   [%- IF source.can_import %]
88 86
    [% L.button_tag("kivi.File.import("   _ object_id _ ",'" _ object_type _ "','" _ file_type _ "','" _ source.name _ "','" _ source.path _"');",  source.import_title ) %]
89 87
   [%- END %]
88
   [%- IF source.can_upload %]
89
    [% L.button_tag("kivi.File.upload(" _ object_id _ ",'" _ object_type _ "','" _ file_type _ "','" _ source.upload_title _ "'," _ is_global _ ");", source.upload_title ) %]
90
    <span class="upload_drop_zone"
91
          data-object-type="[% object_type %]"
92
          data-object-id="[% object_id %]"
93
          data-file-type="[% file_type %]"
94
          data-is-global="[% is_global %]"
95
          data-maxsize="[% INSTANCE_CONF.get_doc_max_filesize %]">
96
      [% 'Drag and drop files here' | $T8 %]
97
    </span>
98
   [%- END %]
90 99
  </div>
91 100
 [%- END # FOREACH source %]
92 101
 <div></div>
......
103 112
  [%- END %]
104 113
 [%- END %]
105 114
[%- END %]
115

  
116
<script>
117
  $(function() {
118
    kivi.File.list_div_id = "[% file_type %]_list_[% object_type %]";
119
    kivi.File.init();
120
  });
121
</script>

Auch abrufbar als: Unified diff