BVB Source Codes

mongo-express Show gridfs.html Source code

Return Download mongo-express: download gridfs.html Source code - Download mongo-express Source code - Type:.html
  1. {% extends 'layout.html' %}
  2.  
  3. {% block title %}{{ bucketName }}{% endblock %}
  4.  
  5.  
  6. {% block breadcrumb %}
  7.   <li>
  8.     <a href="{{ baseHref }}db/{{ dbName}}">Database:</a>
  9.   </li>
  10.   <li class="dropdown">
  11.     <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{{ dbName }}<span class="caret"></span></a>
  12.     <ul class="dropdown-menu">
  13.       {% for db in databases %}
  14.       <li><a href="{{ baseHref }}db/{{ db }}/">{{ db }}</a></li>
  15.       {% endfor %}
  16.     </ul>
  17.   </li>
  18.   <li>
  19.     <a href="{{ baseHref }}db/{{ dbName}}"><span class="glyphicon glyphicon-chevron-right"></span></a>
  20.   </li>
  21.   <li>
  22.     <a href="{{ baseHref }}db/{{ dbName }}/{{ bucketName }}">Bucket:</a>
  23.   </li>
  24.   <li class="dropdown">
  25.     <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{{ bucketName }}<span class="caret"></span></a>
  26.     <ul class="dropdown-menu">
  27.       {% for bucket in buckets %}
  28.       <li><a href="{{ baseHref }}db/{{ dbName }}/gridFS/{{ bucket }}">{{ bucket }}</a></li>
  29.       {% endfor %}
  30.     </ul>
  31.   </li>
  32. {% endblock %}
  33.  
  34. {% block content %}
  35.   {% if files.length == 0 %}
  36.     <p class="well">
  37.       No files found.
  38.     </p>
  39.   {% else %}
  40.  
  41.   <div class="table-responsive tableWrapper">
  42.     <table class="table table-striped">
  43.       <thead>
  44.         {% for column in columns %}
  45.           <th>{{ column }}</th>
  46.         {% endfor %}
  47.         <th>Delete</th>
  48.       </thead>
  49.       {% for file in files %}
  50.         <tr onclick="loadFile('{{ file._id | json | safe | url_encode }}')">
  51.         {% for column in columns %}
  52.           <td><div class="tableContent">{{ file[column] | to_display | safe }}</div></td>
  53.         {% endfor %}
  54.           {% if !settings.read_only %}
  55.             <td>
  56.               <div class="col-md-1">
  57.                 <form method="POST" action="{{ baseHref }}db/{{ dbName }}/gridFS/{{ bucketName }}/{{ file._id | json | safe | url_encode }}">
  58.                 <input type="hidden" name="_method" value="delete">
  59.                 <button type="submit" class="btn btn-danger">
  60.                 <span class="glyphicon glyphicon-trash"></span>
  61.                 </button>
  62.                 </form>
  63.               </div>
  64.             </td>
  65.           {% endif %}
  66.         </tr>
  67.       {% endfor %}
  68.     </table>
  69.   </div>
  70.  
  71.   {% endif %}
  72.  
  73. {% if !settings.read_only %}
  74. <!--
  75.  <div class="row">
  76.      <div class="col-md-12">
  77.        <h2>Rename Bucket</h2>
  78.        <form method="POST" action="{{ baseHref }}db/{{ dbName }}/{{ bucketName }}" class="well form-inline">
  79.          <input type="hidden" name="_method" value="put">
  80.          <div class="form-group">
  81.            <input class="input-medium span7" type="text" id="bucket" name="bucket" placeholder="{{ bucketName }}">
  82.          </div>
  83.          <button type="submit" class="btn btn-primary pull-right">
  84.            <span class="glyphicon glyphicon-pencil"></span>
  85.            Rename
  86.          </button>
  87.        </form>
  88.      </div>
  89.  </div>
  90. -->
  91. <div class="row">
  92.   <div class="col-md-12">
  93.     <h2>Add File</h2>
  94.     <form method="POST" action="{{ baseHref }}db/{{ dbName }}/gridFS/{{ bucketName }}/" enctype="multipart/form-data" class="well form-inline">
  95.  
  96.       <div class="form-group">
  97.         <input type="file" class="input-medium span7" name="filefield">
  98.       </div>
  99.  
  100.       <button type="submit" class="btn btn-success pull-right">
  101.         <span class="glyphicon glyphicon-upload"></span>
  102.         Upload
  103.       </button>
  104.     </form>
  105.   </div>
  106. </div>
  107. {% endif %}
  108.  
  109.  
  110. {% endblock %}
  111. {% block scripts %}
  112. <script src="{{ baseHref }}{{ assets.gridfs.js }}"></script>
  113. {% endblock %}
  114.  
downloadgridfs.html Source code - Download mongo-express Source code
Related Source Codes/Software:
XCL-Charts - Android charting libraries (XCL-Charts is a free c... 2017-05-17
scrollMonitor - A simple and fast API to monitor elements as you s... 2017-05-16
XCDYouTubeKit - YouTube video player for iOS, tvOS and macOS 2017-05-16
rails-erd - Generate Entity-Relationship Diagrams for Rails ap... 2017-05-16
np - A better `npm publish` 2017-05-16
kaminari - A Scope & Engine based, clean, powerful, custo... 2017-06-04
python-fire - Python Fire is a library for automatically generat... 2017-06-04
Dapper - Dapper - a simple object mapper for .Net 2017-06-05
pkg - Package your Node.js project into an executable ... 2017-06-05
packer - Packer is a tool for creating identical machine im... 2017-06-05
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top