Initial commit
This commit is contained in:
22
app/plugins/fileshare/views/create.html
Normal file
22
app/plugins/fileshare/views/create.html
Normal file
@ -0,0 +1,22 @@
|
||||
<legend>File Upload</legend>
|
||||
<form action="" method="post" class="form-horizontal" enctype="multipart/form-data">
|
||||
<input type="hidden" name="token" value="{TOKEN}">
|
||||
<div class="form-group">
|
||||
<label for="name" class="col-lg-3 control-label">Name</label>
|
||||
<div class="col-lg-3">
|
||||
<input type="text" class="form-control" name="name" id="name">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="file" class="col-lg-3 control-label">File</label>
|
||||
<div class="col-lg-3">
|
||||
<input type="file" class="form-control" name="file" id="file">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="submit" class="col-lg-3 control-label"></label>
|
||||
<div class="col-lg-3">
|
||||
<button name="submit" value="submit" type="submit" class="btn btn-lg btn-primary center-block ">Upload</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
22
app/plugins/fileshare/views/edit.html
Normal file
22
app/plugins/fileshare/views/edit.html
Normal file
@ -0,0 +1,22 @@
|
||||
<legend>Edit File</legend>
|
||||
<form action="" method="post" class="form-horizontal" enctype="multipart/form-data">
|
||||
<input type="hidden" name="token" value="{TOKEN}">
|
||||
<div class="form-group">
|
||||
<label for="name" class="col-lg-3 control-label">Name</label>
|
||||
<div class="col-lg-3">
|
||||
<input type="text" class="form-control" name="name" id="name" value="{name}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="file" class="col-lg-3 control-label">File (uploading a new file will replace the existing file)</label>
|
||||
<div class="col-lg-3">
|
||||
<input type="file" class="form-control" name="file" id="file">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="submit" class="col-lg-3 control-label"></label>
|
||||
<div class="col-lg-3">
|
||||
<button name="submit" value="submit" type="submit" class="btn btn-lg btn-primary center-block ">Save</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
24
app/plugins/fileshare/views/list.html
Normal file
24
app/plugins/fileshare/views/list.html
Normal file
@ -0,0 +1,24 @@
|
||||
<div class="row">
|
||||
{LOOP}
|
||||
<div class="col-sm-6 col-md-4">
|
||||
<div class="thumbnail">
|
||||
<img src="{location}" alt="{name}">
|
||||
<div class="caption">
|
||||
<h3>{name}</h3>
|
||||
<p>{readableSize}</p>
|
||||
<p>{file_type}</p>
|
||||
<p>
|
||||
<a href="/fileshare/edit/{ID}" class="btn btn-warning" role="button">edit</a>
|
||||
<a href="/fileshare/delete/{ID}" class="btn btn-danger" role="button">Delete</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/LOOP}
|
||||
{ALT}
|
||||
<div class="col-sm-6 col-md-4">
|
||||
No Uploads Found
|
||||
</div>
|
||||
{/ALT}
|
||||
</div>
|
||||
<a href="{ROOT_URL}fileshare/upload" class="btn btn-sm btn-primary" role="button">Upload File</a>
|
Reference in New Issue
Block a user