BVB Source Codes

mongo-express Show document.html Source code

Return Download mongo-express: download document.html Source code - Download mongo-express Source code - Type:.html
  1. {% extends 'layout.html' %}
  2.  
  3. {% block title %}{{ document._id|to_string }}{% endblock %}
  4.  
  5.  
  6. {% block styles %}
  7.   <link href="{{ baseHref }}public/css/codemirror.css" rel="stylesheet">
  8.   {% if editorTheme != "default" %}
  9.   <link href="{{ baseHref }}public/css/theme/{{ editorTheme }}.css" rel="stylesheet">
  10.   {% endif %}
  11.  
  12.   <style type="text/css">
  13.     .CodeMirror-scroll {
  14.       height: auto;
  15.       overflow-y: hidden;
  16.       overflow-x: auto;
  17.       width: 100%;
  18.     }
  19.     .CodeMirror {
  20.       height: auto;
  21.     }
  22.   </style>
  23. {% endblock %}
  24.  
  25.  
  26. {% block breadcrumb %}
  27.   <li>
  28.     <a href="{{ baseHref }}db/{{ dbName}}">Database:</a>
  29.   </li>
  30.   <li class="dropdown">
  31.     <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{{ dbName }}<span class="caret"></span></a>
  32.     <ul class="dropdown-menu">
  33.       {% for db in databases %}
  34.       <li><a href="{{ baseHref }}db/{{ db }}/">{{ db }}</a></li>
  35.       {% endfor %}
  36.     </ul>
  37.   </li>
  38.   <li>
  39.     <a href="{{ baseHref }}db/{{ dbName}}"><span class="glyphicon glyphicon-chevron-right"></span></a>
  40.   </li>
  41.   <li>
  42.     <a href="{{ baseHref }}db/{{ dbName }}/{{ collectionName | url_encode }}">Collection:</a>
  43.   </li>
  44.   <li class="dropdown">
  45.     <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{{ collectionName }}<span class="caret"></span></a>
  46.     <ul class="dropdown-menu">
  47.       {% for collection in collections %}
  48.       <li><a href="{{ baseHref }}db/{{ dbName }}/{{ collection }}">{{ collection }}</a></li>
  49.       {% endfor %}
  50.     </ul>
  51.   </li>
  52.   <li>
  53.     <a href="{{ baseHref }}db/{{ dbName }}/{{ collectionName | url_encode }}">
  54.       <span class="glyphicon glyphicon-chevron-right"></span>
  55.     </a>
  56.   </li>
  57.   <li><a>Document {{ document._id|to_string }}</a></li>
  58. {% endblock %}
  59.  
  60. {% block content %}
  61.  
  62. <form method="POST"
  63.  id="documentEditForm"
  64.  action="{{ baseHref }}db/{{ dbName }}/{{ collectionName | url_encode }}/{{ document._id | json | safe | url_encode }}"
  65. >
  66.   {% if docLength > 10 %}
  67.     <div>
  68.       {% if !settings.read_only %}
  69.         <input type="hidden" name="_method" value="put">
  70.         <button onclick="return onBackClick()" class="backButton btn btn-warning btn-large">
  71.          <span class="glyphicon glyphicon-arrow-left"></span>
  72.           Back
  73.         </button>
  74.         <button type="submit" class="btn btn-success btn-large pull-right" onclick="return onSubmitClick()">
  75.           <span class="glyphicon glyphicon-pencil"></span>
  76.           Save
  77.         </button>
  78.       {% else %}
  79.         <button onclick="return history.back()" class="btn btn-warning btn-large btn-block">
  80.          <span class="glyphicon glyphicon-arrow-left"></span>
  81.           Back
  82.         </button>
  83.       {% endif %}
  84.     </div>
  85.   <br />
  86.   {% endif %}
  87.  
  88.   <textarea class="col-md-12" id="document" name="document"{% if settings.read_only %} readonly="readonly"{% endif %}>{{ docString }}</textarea>
  89.   <br />
  90.  
  91.   <div>
  92.     {% if !settings.read_only %}
  93.       <input type="hidden" name="_method" value="put">
  94.       <button onclick="return onBackClick()" class="backButton btn btn-warning btn-large">
  95.        <span class="glyphicon glyphicon-arrow-left"></span>
  96.         Back
  97.       </button>
  98.  
  99.       <button type="submit" class="btn btn-success btn-large pull-right" onclick="return onSubmitClick()">
  100.         <span class="glyphicon glyphicon-pencil"></span>
  101.         Save
  102.       </button>
  103.     {% else %}
  104.       <button onclick="return history.back()" class="btn btn-warning btn-large btn-block">
  105.        <span class="glyphicon glyphicon-arrow-left"></span>
  106.         Back
  107.       </button>
  108.     {% endif %}
  109.   </div>
  110. </form>
  111.  
  112. {% if !settings.read_only %}
  113.   <br>
  114.   <form method="POST" action="{{ baseHref }}db/{{ dbName }}/{{ collectionName | url_encode }}/{{ document._id | json | safe | url_encode }}">
  115.     <input type="hidden" name="_method" value="delete">
  116.     <button type="submit" class="btn btn-danger">
  117.       <span class="glyphicon glyphicon-trash"></span>
  118.       Delete
  119.     </button>
  120.   </form>
  121. {% endif %}
  122.  
  123. {% endblock %}
  124.  
  125.  
  126. {% block scripts %}
  127. <script src="{{ baseHref }}{{ assets.codemirror.js }}"></script>
  128. <script src="{{ baseHref }}{{ assets.document.js }}"></script>
  129. {% endblock %}
  130.  
downloaddocument.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