This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.forms.util import ErrorList | |
from django import forms | |
class ContractUpdateView(UpdateView): | |
model = Contract | |
template_name = 'contract/contract_form.html' | |
form_class = ContractForm | |
def form_valid(self, form): | |
if self.request.POST.get('finish'): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.awt.event.ActionEvent; | |
import java.awt.event.ActionListener; | |
import javax.swing.JButton; | |
import javax.swing.JFrame; | |
import javax.swing.JLabel; | |
import javax.swing.JOptionPane; | |
import javax.swing.JTextField; | |
/** | |
* Clase Ventana |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
// @type: string - [success, info, warning, danger] | |
// @message: string - content of alert | |
// @dismisable: boolean | |
// returns alert HTML | |
function html_alert($type, $message, $dismisable){ | |
$alert = ''; | |
$alert_class = 'alert'; | |
if ( $type ) $alert_class += ' alert-'.$type; |