Commit c6e6664a authored by Marc Duez's avatar Marc Duez

server.js : add db_layout for all views

db_layout contains the database menu and user info
parent 8708611d
<form id="data_form" action="DB_ADRESS/config/add_form" enctype="multipart/form-data" method="post">
{{extend 'db_layout.html'}}
<form id="data_form" action="DB_ADDRESS/config/add_form" enctype="multipart/form-data" method="post">
<table>
<tbody>
<tr>
......
{{extend 'db_layout.html'}}
{{('message' in globals())}}
{{if 'message' in globals():}}
......
{{extend 'db_layout.html'}}
{{
info = db.config[request.vars["id"]]
}}
<form id="data_form" action="DB_ADRESS/config/edit_form" enctype="multipart/form-data" method="post">
<form id="data_form" action="DB_ADDRESS/config/edit_form" enctype="multipart/form-data" method="post">
<input type="HIDDEN" id="config_id" name="id" value="{{=request.vars["id"]}}">
<table>
<tbody>
......
{{extend 'db_layout.html'}}
{{('message' in globals())}}
{{if 'message' in globals():}}
......
<div id="db_header">
<div id="db_menu">
<a class="button" onclick="db.call('patient/index');">patients</a>
<a class="button" onclick="db.call('standard/index');">standards</a>
<a class="button" onclick="db.call('config/index');">configs</a>
</div>
<div id="db_auth">
{{if auth.user:}}
<a class="button" onclick="db.call('default/user/profile');">{{=auth.user.first_name}}</a>
<a class="button" onclick="db.request('default/user/logout');">disconnect</a>
{{pass}}
</div>
</div>
<div>
{{include}}
</div>
<form id="upload_form" action="DB_ADRESS/file/add_form" enctype="multipart/form-data" method="post">
{{extend 'db_layout.html'}}
<form id="upload_form" action="DB_ADDRESS/file/add_form" enctype="multipart/form-data" method="post">
<input type="hidden" name="patient_id" value="{{=request.vars["id"]}}" >
<table>
......
{{extend 'db_layout.html'}}
{{('message' in globals())}}
{{if 'message' in globals():}}
......
{{extend 'db_layout.html'}}
{{
info = db.sequence_file[request.vars["id"]]
}}
<form id="data_form" action="DB_ADRESS/file/edit_form" enctype="multipart/form-data" method="post">
<form id="data_form" action="DB_ADDRESS/file/edit_form" enctype="multipart/form-data" method="post">
<input type="hidden" id="file_id" name="id" value="{{=request.vars["id"]}}" >
<table>
......
<form id="data_form" action="DB_ADRESS/patient/add_form" enctype="multipart/form-data" method="post">
{{extend 'db_layout.html'}}
<form id="data_form" action="DB_ADDRESS/patient/add_form" enctype="multipart/form-data" method="post">
<table>
<tbody>
<tr>
......
{{extend 'db_layout.html'}}
{{('message' in globals())}}
{{if 'message' in globals():}}
......
{{extend 'db_layout.html'}}
{{
info = db.patient[request.vars["id"]]
}}
<form id="data_form" action="DB_ADRESS/patient/edit_form" enctype="multipart/form-data" method="post">
<form id="data_form" action="DB_ADDRESS/patient/edit_form" enctype="multipart/form-data" method="post">
<input type="HIDDEN" id="patient_id" name="id" value="{{=request.vars["id"]}}">
<table>
<tbody>
......
{{extend 'db_layout.html'}}
{{('message' in globals())}}
{{if 'message' in globals():}}
......
{{extend 'db_layout.html'}}
{{('message' in globals())}}
{{if 'message' in globals():}}
......
<form id="upload_form" action="DB_ADRESS/standard/add_form" enctype="multipart/form-data" method="post">
{{extend 'db_layout.html'}}
<form id="upload_form" action="DB_ADDRESS/standard/add_form" enctype="multipart/form-data" method="post">
<table>
<tbody>
<tr>
......
{{extend 'db_layout.html'}}
{{('message' in globals())}}
{{if 'message' in globals():}}
......
{{extend 'db_layout.html'}}
{{
info = db.standard_file[request.vars["id"]]
}}
<form id="data_form" action="DB_ADRESS/standard/edit_form" enctype="multipart/form-data" method="post">
<form id="data_form" action="DB_ADDRESS/standard/edit_form" enctype="multipart/form-data" method="post">
<input type="HIDDEN" id="standard_id" name="id" value="{{=request.vars["id"]}}">
<table>
<tbody>
......
{{extend 'db_layout.html'}}
{{('message' in globals())}}
{{if 'message' in globals():}}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment