104 lines
3.4 KiB
HTML
104 lines
3.4 KiB
HTML
{% extends "groups/base.html" %}
|
|
{% load static %}
|
|
{% block headother%}
|
|
<!-- DataTables -->
|
|
<link rel="stylesheet" href="{% static 'groups/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css' %}">
|
|
|
|
{% endblock %}
|
|
|
|
|
|
{% block title %}员工信息{% endblock %}
|
|
|
|
{% block pagehead %}
|
|
<section class="content-header">
|
|
<h1>
|
|
员工信息
|
|
<small></small>
|
|
</h1>
|
|
<ol class="breadcrumb">
|
|
<li><a href="{% url 'groups_index' %}"><i class="fa fa-dashboard"></i> 主页</a></li>
|
|
<li class="active">员工信息</li>
|
|
</ol>
|
|
</section>
|
|
{% endblock %}
|
|
{% block content %}
|
|
<!-- Main content -->
|
|
<section class="content">
|
|
<div class="row">
|
|
<!-- right column -->
|
|
<div class="col-md-12">
|
|
<!-- Horizontal Form -->
|
|
<div class="box box-info">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">员工信息</h3>
|
|
</div>
|
|
<!-- /.box-header -->
|
|
<!-- form start -->
|
|
<form class="form-horizontal" method="post" action="{% url 'groups_userupdate' %}">
|
|
{% csrf_token %}
|
|
{% if message %}
|
|
<p style="color:red">{{ message }}</p>
|
|
{% endif %}
|
|
<div class="box-body">
|
|
<div class="form-group">
|
|
<input type="hidden" name='id' value="{{ user.userid }}"/>
|
|
<label class="col-sm-2 control-label">现属公司</label>
|
|
<div class="col-sm-6">
|
|
<input class="form-control" name="oldcompany" type="text" readonly value="{{ oldcompany.partname }}"/>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label">调整到</label>
|
|
<div class="col-sm-6">
|
|
<select class="form-control" name="company" >
|
|
{% for company in companys %}
|
|
<option value='{{ company.partid }}'>{{ company.partname }}</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /.box-body -->
|
|
<div class="box-footer">
|
|
<button type="submit" class="btn btn-primary">提交</button>
|
|
</div>
|
|
<!-- /.box-footer -->
|
|
</form>
|
|
</div>
|
|
<!-- /.box -->
|
|
</div>
|
|
<!--/.col (right) -->
|
|
</div>
|
|
<!-- /.row -->
|
|
</section>
|
|
<!-- /.content -->
|
|
{% endblock %}
|
|
|
|
|
|
{% block endother%}
|
|
<!-- DataTables -->
|
|
<script src="{% static 'groups/bower_components/datatables.net/js/jquery.dataTables.min.js' %}"></script>
|
|
<script src="{% static 'groups/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js' %}"></script>
|
|
<!-- SlimScroll -->
|
|
<script src="{% static 'groups/bower_components/jquery-slimscroll/jquery.slimscroll.min.js' %}"></script>
|
|
<!-- FastClick -->
|
|
<script src="{% static 'groups/bower_components/fastclick/lib/fastclick.js' %}"></script>
|
|
|
|
|
|
<script>
|
|
$(function () {
|
|
$('#example1').DataTable()
|
|
$('#example2').DataTable({
|
|
'paging' : true,
|
|
'lengthChange': false,
|
|
'searching' : false,
|
|
'ordering' : true,
|
|
'info' : true,
|
|
'autoWidth' : false
|
|
})
|
|
})
|
|
</script>
|
|
{% endblock %}
|
|
|
|
|