MyCo/index.html

295 lines
11 KiB
HTML
Raw Normal View History

2014-01-06 01:46:22 +01:00
<!DOCTYPE html>
2014-01-07 15:23:12 +01:00
<html manifest="cache.manifest">
2014-01-06 01:46:22 +01:00
<head>
<title>MyCo</title>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="favicon.png">
<!-- Bootstrap -->
<!-- Latest compiled and minified CSS -->
2014-01-07 15:23:12 +01:00
<link rel="stylesheet" href="inc/lib/bootstrap/css/bootstrap.min.css">
2014-01-06 01:46:22 +01:00
<!-- Optional theme -->
2014-01-07 15:23:12 +01:00
<link rel="stylesheet" href="inc/lib/bootstrap/css/bootstrap-theme.min.css">
2014-01-06 01:46:22 +01:00
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
2014-01-07 15:23:12 +01:00
<script src="inc/lib/html5shiv.js"></script>
<script src="inc/lib/respond.min.js"></script>
2014-01-06 01:46:22 +01:00
<![endif]-->
</head>
<style>
body{
margin-top: 4em;
}
#total-label {
text-align: right;
}
#total-label, #total-value {
font-weight: bold;
}
.late {
color: red;
}
.hidden-part {
display: none;
}
#view-group h1 {
text-transform: capitalize;
}
</style>
<body>
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-groupe-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
2014-01-07 15:23:12 +01:00
<a class="navbar-brand">MyCo</a>
2014-01-06 01:46:22 +01:00
</div>
<div class="collapse navbar-collapse" id="navbar-groupe-collapse">
<ul class="nav navbar-nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Groupe <b class="caret"></b></a>
<ul id="group-choice" class="dropdown-menu">
<li class="divider"></li>
<li><a href="#" id='add_group_btn' data-toggle="modal" data-target="#add_group_modal">Nouveau</a></li>
2014-01-06 01:46:22 +01:00
</ul>
</li>
<li><a id='clear_local_data'>Purger les données locales</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
<div class="container">
<div id='view-group' class='part hidden-part'>
<h1><span>Noël</span><small><span id='edit_group_btn' class='glyphicon glyphicon-edit btn btn-sm'></span></small></h1>
2014-01-06 01:46:22 +01:00
<form class="form-horizontal" role="form">
<input type='hidden' id='group_name' value='Noël'/>
2014-01-06 03:04:57 +01:00
<input type='hidden' id='edit_id' value='-1' />
2014-01-06 01:46:22 +01:00
<div class="form-group">
<div class="input-group">
<span class="input-group-addon">Participant</span>
<select id='contributor' class="form-control">
</select>
<span class="input-group-btn">
<button type="button" class="btn btn-primary" id='edit_contributor_btn'><span class='glyphicon glyphicon-edit'></span></button>
<button type="button" class="btn btn-primary" id='del_contributor_btn'><span class='glyphicon glyphicon-trash'></span></button>
<button type="button" class="btn btn-primary" id='add_contributor_btn'><span class='glyphicon glyphicon-plus'></span></button>
</span>
</div>
</div>
</form>
<div class="btn-group">
<button id='add_contribution_btn' class="btn btn-primary"><span class='glyphicon glyphicon-plus'></span> Ajouter une dépence</span></button>
<button id='display_balance_btn' class="btn btn-info"><span class='glyphicon glyphicon-euro'></span> Balance</span></button>
<div class="btn-group">
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
<span class="glyphicon glyphicon-cog"></span>
</button>
<ul class="dropdown-menu">
<li><a id='remove_group_btn'><span class='glyphicon glyphicon-trash'></span> Supprimer le groupe</span></a></li>
</ul>
</div>
</div>
<table id='contributions' class="table">
<thead>
<tr>
<th>Dépence</th>
<th>Coût</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<tr>
2014-01-12 01:17:57 +01:00
<td>Label</td>
<td>XXX,XX€</td>
2014-01-06 01:46:22 +01:00
<td>
<div class="btn-group" data-id='0'>
<button type="button" class="btn btn-default contribution_edit_btn"><span class='glyphicon glyphicon-edit'></span></button>
<button type="button" class="btn btn-default contribution_delete_btn"><span class='glyphicon glyphicon-trash'></span></button>
</div>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td id='total-label'>Total :</td>
<td id='total-value' colspan='2'>126,56€</td>
</tr>
</tfoot>
</table>
</div>
<div class="modal fade" id="add_group_modal" tabindex="-1" role="dialog" aria-labelledby="addGroupModal" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title">Ajouter un groupe</h4>
</div>
<div class="modal-body">
<form class="form-horizontal" role="form">
<div class="form-group">
<div class="input-group">
<span class="input-group-addon">Nom *</span>
<input type='text' id='add_group_name' class="form-control" placeholder='Nom'/>
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
<button type="button" class="btn btn-primary" id='add_group_submit'>Ajouter</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div>
<div class="modal fade" id="add_contributor_modal" tabindex="-1" role="dialog" aria-labelledby="addContributorModal" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title">Ajouter un participant</h4>
</div>
<div class="modal-body">
<form class="form-horizontal" role="form">
<input type='hidden' id='group_name' />
<div class="form-group">
<div class="input-group">
<span class="input-group-addon">Nom *</span>
<input type='text' id='add_contributor_name' class="form-control" placeholder='Nom'/>
</div>
</div>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon">Email *</span>
<input type='text' id='add_contributor_email' class="form-control" placeholder='Email'/>
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
<button type="button" class="btn btn-primary" id='add_contributor_submit'>Ajouter</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div>
<div class="modal fade" id="add_contribution_modal" tabindex="-1" role="dialog" aria-labelledby="addContributorModal" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title">Ajouter une contribution</h4>
</div>
<div class="modal-body">
<form class="form-horizontal" role="form">
<input type='hidden' id='group_name' />
<input type='hidden' id='edit_id' value='-1' />
<div class="form-group">
<div class="input-group">
<span class="input-group-addon">Participant *</span>
<select id='add_contribution_contributor_name' class="form-control"></select>
</div>
</div>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon">Titre *</span>
<input type='text' id='add_contribution_title' class="form-control" placeholder='Titre'/>
</div>
</div>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon">Coût *</span>
<input type='text' id='add_contribution_cost' class="form-control" placeholder='0,00'/>
<span class="input-group-addon"></span>
</div>
</div>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon">Date</span>
<input type='text' id='add_contribution_date' class="form-control" placeholder='JJ/MM/AAAA'/>
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
<button type="button" class="btn btn-primary" id='add_contribution_submit'>Ajouter</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div>
<div class="modal fade" id="display_balance_modal" tabindex="-1" role="dialog" aria-labelledby="displayBalanceModal" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title">Balance</h4>
</div>
<div class="modal-body">
<table class="table table-striped">
<thead>
<tr><th>Participant</th><th>Participation</th></tr>
</thead>
<tbody></tbody>
<tfoot>
<tr>
<td id='total-label'>Total :</td>
<td id='total-value'></td>
</tr>
</tfoot>
</table>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Ok</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div>
<div class="modal fade" id="confirm_modal" tabindex="-1" role="dialog" aria-labelledby="confirmModal" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close cancel" aria-hidden="true">&times;</button>
<h4 class="modal-title">Confirmation</h4>
</div>
<div class="modal-body">
<p id='question'></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default cancel">Annuler</button>
<button type="button" class="btn btn-primary" id='confirm_modal_submit'>Valider</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
2014-01-07 15:23:12 +01:00
<script src="inc/lib/jquery-1.10.2.min.js"></script>
2014-01-06 01:46:22 +01:00
<!-- Latest compiled and minified JavaScript -->
2014-01-07 15:23:12 +01:00
<script src="inc/lib/bootstrap/js/bootstrap.min.js"></script>
2014-01-06 01:46:22 +01:00
<script src="inc/lib/moment.min.js"></script>
<script src="inc/myco_objects.js"></script>
<script src="inc/myco_confirm.js"></script>
<script src="inc/myco.js"></script>
</body>
</html>