#242: cv speichern

This commit is contained in:
Martin Müller 2014-05-11 11:13:33 +02:00
parent d852f18552
commit e55e66e412
4 changed files with 20 additions and 12 deletions

View File

@ -1137,6 +1137,9 @@ msgstr ""
msgid "dreamjob.my.profil" msgid "dreamjob.my.profil"
msgstr "" msgstr ""
msgid "dreamjob.applicated.to"
msgstr ""

View File

@ -62,7 +62,7 @@
$newcount++; $newcount++;
if($newcount>0) if($newcount>0)
$statusApp = $newcount."/".$statusApp; $statusApp = $newcount."/".$statusApp;
$statusApp =__('dreamjob.applicated').' <span class="badge">'.$statusApp.'</span>'; $statusApp =__('dreamjob.applicated.to').' <span class="badge">'.$statusApp.'</span>';
$archiv['filter'] = 'archiv'; $archiv['filter'] = 'archiv';
}else{ }else{
$statusApp = __('dreamjob.application'); $statusApp = __('dreamjob.application');

View File

@ -462,7 +462,7 @@ body.loading #container{
display:inline-block; display:inline-block;
width:90%; width:90%;
} }
.cv .date > select { .cv .date > select,.cv .date > .select2-container {
width:30%; width:30%;
display:inline-block; display:inline-block;
} }

View File

@ -47,7 +47,7 @@
$(where+' .dropdown-toggle').dropdown(); $(where+' .dropdown-toggle').dropdown();
$(where+" a").tooltip();; $(where+" a").tooltip();;
$(where+" a").each(function(that){ $(where+" a").each(function(that){
if($(this).attr("rel")!=="external" && $(this).attr("ref")!=="eventOff" && !$(this).parents('ul').hasClass("wysihtml5-toolbar") && !$(this).hasClass(".select2-choice")) if($(this).attr("rel")!=="external" && $(this).attr("ref")!=="eventOff" && !$(this).parents('ul').hasClass("wysihtml5-toolbar") && !$(this).hasClass(".select2-choice") && !$(this).parents('form').hasClass('tableForm'))
$(this).click(function(e){ $(this).click(function(e){
load($(this).attr('href'),{},($(this).attr('rel')=="tab")); load($(this).attr('href'),{},($(this).attr('rel')=="tab"));
return false; return false;
@ -117,7 +117,7 @@
}); });
if(tosave) if(tosave)
//console.log("sendTosave"); //console.log("sendTosave");
saveForm(); saveForm(that);
}); });
//ZUOFT WIRD GESPEICHERT //ZUOFT WIRD GESPEICHERT
@ -126,25 +126,30 @@
var that2 = this; var that2 = this;
$(".btn-del",this).unbind("click").click(function(evt){ $(".btn-del",this).unbind("click").click(function(evt){
$(that2).remove(); $(that2).remove();
saveForm(); saveForm(that);
}); });
}); });
} }
evet(); evet();
function saveForm(){ });
function saveForm(here,back){
i = 0; i = 0;
$(":input[ name *= '_wysihtml5_mod' ]",$(that).parents('form')).remove(); $(":input[ name *= '_wysihtml5_mod' ]",$(here).parents('form')).remove();
$("tbody tr.new",$(that).parents('form')).remove(); //$(":input[ class *= 'select2-focusser' ]",$(here).parents('form')).remove();
$("tbody tr",$(that).parents('form')).each(function(){ $("tbody tr.new",$(here).parents('form')).remove();
$(":input",this).each(function(){ $("tbody tr",$(here).parents('form')).each(function(){
$(":input[name]",this).each(function(){
str = $(this).attr("name").replace(/data\[(.*?)\]\[.*?\]\[(.+)\]/g,'data[$1]['+i+'][$2]'); str = $(this).attr("name").replace(/data\[(.*?)\]\[.*?\]\[(.+)\]/g,'data[$1]['+i+'][$2]');
$(this).attr("name",str); $(this).attr("name",str);
}); });
i++; i++;
}); });
load($(that).parents("form").attr("action"),{data:$(that).parents("form").serialize(), type:'POST'},false); load($(here).parents("form").attr("action"),{back:back,data:$(here).parents("form").serialize(), type:'POST'},false);
} }
});
$($(where+" form.tableForm .label.edit").parents('form.tableForm a')).click(function(){saveForm('form.tableForm tbody',$(this).attr('href'));return false;});
//$(where+" form label.has-error").parent(".form-group").addClass("has-error") //$(where+" form label.has-error").parent(".form-group").addClass("has-error")
} }
function setContent(data,back,tab,backignore){ function setContent(data,back,tab,backignore){