]> Frank Brehm's Git Trees - books.git/commitdiff
Zwischenstand
authorFrank Brehm <frank@brehm-online.com>
Sun, 7 Sep 2008 07:10:27 +0000 (07:10 +0000)
committerFrank Brehm <frank@brehm-online.com>
Sun, 7 Sep 2008 07:10:27 +0000 (07:10 +0000)
64 files changed:
bin/show_sessions.pl
lib/FrBr/Books.pm
lib/FrBr/Books/Controller/Autor.pm
lib/FrBr/Books/Controller/Books.pm
lib/FrBr/Books/Controller/Login.pm
lib/FrBr/Books/Controller/Root.pm
lib/FrBr/Books/Controller/Verlag.pm
lib/FrBr/Books/Db.pm
lib/FrBr/Books/Db/Autor2buch.pm
lib/FrBr/Books/Db/Autoren.pm
lib/FrBr/Books/Db/Bindungsarten.pm
lib/FrBr/Books/Db/Buch2kategorie.pm
lib/FrBr/Books/Db/Buch2serie.pm
lib/FrBr/Books/Db/Buecher.pm
lib/FrBr/Books/Db/Kategorien.pm
lib/FrBr/Books/Db/Serien.pm
lib/FrBr/Books/Db/Session.pm
lib/FrBr/Books/Db/Users.pm
lib/FrBr/Books/Db/Verlage.pm
lib/FrBr/Books/Db/Waehrungen.pm
lib/FrBr/Books/Model/Schema.pm
lib/FrBr/Books/Plugin/ConfigLoader.pm
lib/FrBr/Books/Plugin/WebPath.pm
lib/FrBr/Books/Util/Author.pm
lib/FrBr/Books/Util/Book.pm
lib/FrBr/Books/Util/Category.pm
lib/FrBr/Books/Util/Serie.pm
lib/FrBr/Books/Util/Verlag.pm
lib/FrBr/Books/Util/Waehrung.pm
lib/FrBr/Books/View/TtDefault.pm
lib/FrBr/Common.pm
root/lib/config/colors.tt2
root/lib/config/main.tt2
root/lib/config/url.tt2
root/lib/site/footer.tt2
root/lib/site/header.tt2
root/lib/site/html.tt2
root/lib/site/jscript.tt2
root/lib/site/jsfiles.tt2
root/lib/site/layout.tt2
root/lib/site/statusbar.tt2
root/lib/site/wrapper.tt2
root/src/autor/autor_form.tt2
root/src/autor/index.tt2
root/src/autor/new.tt2
root/src/autor/save_success.tt2
root/src/books/book_form.tt2
root/src/books/index.tt2
root/src/books/list.tt2
root/src/books/new.tt2
root/src/error.tt2
root/src/index.tt2
root/src/not_implemented.tt2
root/src/verlag/form.css [new file with mode: 0644]
root/src/verlag/index.tt2
root/src/verlag/new.tt2 [new file with mode: 0644]
root/src/verlag/save_success.tt2 [new file with mode: 0644]
root/src/verlag/verlag_form.tt2 [new file with mode: 0644]
root/src/welcome.tt2
script/frbr_books_cgi.pl
script/frbr_books_create.pl
script/frbr_books_fastcgi.pl
script/frbr_books_server.pl
script/frbr_books_test.pl

index 1b833924ae23635ad302869e6e9598baecda28e3..8ce84103e2f6363075a0b1cea7080f4813f50c5a 100755 (executable)
@@ -58,3 +58,6 @@ for ( @all_items ) {
 
 exit 0;
 
+__END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab :
index 4192593bc726e8b66ec3a4ffce006635a08eb7a6..5be44ca8c46efcaaa1b3e6ee3d7a8db91f03f89a 100644 (file)
@@ -185,3 +185,7 @@ it under the same terms as Perl itself.
 =cut
 
 1;
+
+__END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab :
index 622865fd03df109324f3c37ec63a70834b4a2f9e..56c6f072341abf81a7987311aec781c859c006cc 100644 (file)
@@ -160,7 +160,7 @@ sub check_formparams : Private {
         return undef;
     }
 
-    unless ( $c->stash->{'autor_edit'} ) {
+    unless ( $c->stash->{'autor_edit'}{'name'} ) {
         $c->stash->{'error_message'} = "Kein Name des Autors angegeben.";
         return undef;
     }
@@ -232,3 +232,7 @@ it under the same terms as Perl itself.
 =cut
 
 1;
+
+__END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab :
index 267af5707fb0c23e8c3d8760f3b3be9ee3225abf..0d404ce91c7d85ed8987058474e144e0694f3bfa 100644 (file)
@@ -546,3 +546,7 @@ it under the same terms as Perl itself.
 #-------------------------------------------------------
 
 1;
+
+__END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab :
index 723cdb90735a2f298b0930a4f9b750e962167550..d1d8c5d96c6c1a16b140dfd9e80ecfec763d5d46 100644 (file)
@@ -50,3 +50,7 @@ it under the same terms as Perl itself.
 =cut
 
 1;
+
+__END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab :
index 0caeb5d8037cd2d922341de36441ab3f185b439f..3eb10710d9c637670ee8a4c2ba5cedb9d883db3d 100644 (file)
@@ -75,3 +75,7 @@ it under the same terms as Perl itself.
 =cut
 
 1;
+
+__END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab :
index 4788632e878229ad626f14fad549bde8e86c0692..aa105111068563ff1865c5d4440c3fbe2d6a4a8a 100644 (file)
@@ -80,6 +80,146 @@ sub default : Private {
 
 } ## end sub default :
 
+#-------------------------------------------------------
+
+=head2 form_new( )
+
+Erstellen eines neuen Verlages.
+
+=cut
+
+sub form_new : Path('new') {
+
+    my ( $self, $c ) = @_;
+    my $K = __PACKAGE__ . "::form_new(): ";
+
+    $c->log->debug( $K . "aufgerufen." ) if $c->stash->{'debug_level'} > 2;
+
+    $c->stash->{'menu_path'} = [] unless $c->stash->{'menu_path'};
+    push @{ $c->stash->{'menu_path'} }, {
+        'path' => $c->web_path("/verlag/new"),
+        'name' => "Neu"
+    };
+
+    $c->stash->{'template'} = 'verlag/new.tt2';
+    push @{$c->stash->{'cssfiles'}}, 'verlag/form.css';
+
+    $c->stash->{'error_message'} = '';
+
+#    $self->prepare_data_structures($c);
+
+    $self->verlag_cgi2session($c);
+
+    $c->stash->{'verlag_edit'} = {} unless $c->stash->{'verlag_edit'};
+    $self->verlag_session2stash($c);
+    $c->stash->{'verlag_edit'}{'name'} = "Neuer Verlag" unless $c->stash->{'verlag_edit'}{'name'};
+
+    $c->stash->{'return_target_verlag_save'} = $c->session->{'return_target_verlag_save'} || $c->web_path('/verlag');
+
+    return 1 unless $c->request->params->{'verlag_form_sent'} and $c->request->params->{'do_save'};
+
+    return $self->do_save_verlag($c);
+
+}
+
+#-------------------------------------------------------
+
+sub do_save_verlag : Private {
+
+    my ( $self, $c ) = @_;
+    my $K = __PACKAGE__ . "::do_save_verlag(): ";
+
+    return 1 unless $self->check_formparams($c);
+
+    eval {
+        die "Speichern des Verlags misslungen." unless save_verlag( $c, $c->stash->{'verlag_edit'} );
+    };
+    if ( $@ ) {
+        $c->stash->{'error_message'} = $@;
+        return undef;
+    }
+
+    $c->stash->{'template'} = 'verlag/save_success.tt2';
+    delete $c->session->{'verlag_data_edit'} if exists $c->session->{'verlag_data_edit'};
+    delete $c->session->{'return_target_verlag_save'} if exists $c->session->{'return_target_verlag_save'};
+
+    return 1;
+
+}
+
+#-------------------------------------------------------
+
+sub check_formparams : Private {
+
+    my ( $self, $c ) = @_;
+    my $K = __PACKAGE__ . "::check_formparams(): ";
+
+    unless ( $c->stash->{'verlag_edit'} ) {
+        $c->stash->{'error_message'} = "Interner Fehler";
+        return undef;
+    }
+
+    unless ( $c->stash->{'verlag_edit'}{'name'} ) {
+        $c->stash->{'error_message'} = "Kein Name des Verlags angegeben.";
+        return undef;
+    }
+
+    return 1;
+
+}
+
+#-------------------------------------------------------
+
+sub verlag_cgi2session : Private {
+
+    my ( $self, $c ) = @_;
+    my $K = __PACKAGE__ . "::verlag_cgi2session(): ";
+
+    return 1 unless $c->request->params->{'verlag_form_sent'};
+
+    $c->session->{'return_target_verlag_save'} = $c->request->params->{'return_target_form'} if $c->request->params->{'return_target_form'};
+
+    # Basis anlegen, wenn notwendig
+    $c->session->{'verlag_data_edit'} = {} unless $c->session->{'verlag_data_edit'};
+
+    # Autor-Id eintragen, wenn notwendig
+    $c->session->{'verlag_data_edit'}{'id'} = $c->request->params->{'verlag_id'} if $c->request->params->{'verlag_id'};
+
+    # Kurzname des Verlags
+    if ( defined $c->request->params->{'verlag_name'} ) {
+        my $name = $c->request->params->{'verlag_name'};
+        $name =~ s/^\s+//;
+        $name =~ s/\s+$//;
+        $c->session->{'verlag_data_edit'}{'name'} = $name;
+    }
+
+    # Langname des Verlags
+    if ( defined $c->request->params->{'verlag_name_long'} ) {
+        my $name = $c->request->params->{'verlag_name_long'};
+        $name =~ s/^\s+//;
+        $name =~ s/\s+$//;
+        $c->session->{'verlag_data_edit'}{'name_long'} = $name;
+    }
+
+    return 1;
+
+}
+
+#-------------------------------------------------------
+
+sub verlag_session2stash : Private {
+
+    my ( $self, $c ) = @_;
+    my $K = __PACKAGE__ . "::verlag_session2stash(): ";
+
+    $c->stash->{'verlag_edit'} = {} unless $c->stash->{'verlag_edit'};
+    $c->stash->{'verlag_edit'}{'id'}   = $c->session->{'verlag_data_edit'}{'id'}   if $c->session->{'verlag_data_edit'}{'id'};
+    $c->stash->{'verlag_edit'}{'name'} = $c->session->{'verlag_data_edit'}{'name'} if $c->session->{'verlag_data_edit'}{'name'};
+    $c->stash->{'verlag_edit'}{'name_long'} = $c->session->{'verlag_data_edit'}{'name_long'} if $c->session->{'verlag_data_edit'}{'desc'};
+
+    return 1;
+
+}
 
 #-------------------------------------------------------
 
@@ -95,3 +235,7 @@ it under the same terms as Perl itself.
 =cut
 
 1;
+
+__END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab : 
index 779d4eeaf0817ba60f3ada3eb3a8a7db8d487b20..45a6f44526f4b0e27f4b2cf6a91ce33d18c93651 100644 (file)
@@ -17,3 +17,7 @@ __PACKAGE__->load_classes;
 
 # You can replace this text with custom content, and it will be preserved on regeneration
 1;
+
+__END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab :
index 2facd462750ca82d0cb5656169ac6cd9dbfa4c18..ae715c45f88a98d612edd19b544c3ebb8c12067d 100644 (file)
@@ -28,3 +28,7 @@ __PACKAGE__->might_have( 'autor' => 'FrBr::Books::Db::Autoren', { 'foreign.id' =
 
 # You can replace this text with custom content, and it will be preserved on regeneration
 1;
+
+__END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab :
index e640a97a14d4deed63784db6a5b858bc59d4cb30..0bab31d1e722e903800e5357beb7fcbae7bc68a0 100644 (file)
@@ -25,3 +25,7 @@ __PACKAGE__->add_unique_constraint("autor_name", ["autor_name"]);
 
 # You can replace this text with custom content, and it will be preserved on regeneration
 1;
+
+__END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab :
index c0d4a61bb37ffd9ad639ac6fc621153cbf72351b..666dbbf5ddfb5718ddbb2b2be5a22b0f0d915ecb 100644 (file)
@@ -18,3 +18,7 @@ __PACKAGE__->set_primary_key("id");
 __PACKAGE__->add_unique_constraint("art_name", ["art_name"]);
 
 1;
+
+__END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab :
index a3feb21f4d9c63593b958c7d3a32486259358d71..624cb8a55675a6f8d8fc5e868a1f91ea79ee6a30 100644 (file)
@@ -27,3 +27,7 @@ __PACKAGE__->might_have( 'kategorie' => 'FrBr::Books::Db::Kategorien', { 'foreig
 
 # You can replace this text with custom content, and it will be preserved on regeneration
 1;
+
+__END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab :
index 2a81a2bf86f1b7d73749e3953b4966b6ac9d4e4e..12b51796799adb0fb9493b672d486dd06c3fcd99 100644 (file)
@@ -29,3 +29,7 @@ __PACKAGE__->might_have( 'serie' => 'FrBr::Books::Db::Serien',  { 'foreign.id' =
 
 # You can replace this text with custom content, and it will be preserved on regeneration
 1;
+
+__END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab :
index 1a195dddecbb9a268a64eb74dc137b926520974c..8840bfa4553900219f72a366b0ffad7000144b1c 100644 (file)
@@ -38,3 +38,7 @@ __PACKAGE__->might_have( 'bindungsart' => 'FrBr::Books::Db::Bindungsarten', { 'f
 
 # You can replace this text with custom content, and it will be preserved on regeneration
 1;
+
+__END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab :
index bae38d7ec501606632a7a075f07b61878f8fa88d..e6878bae73bbf9bd34aaf63d9fb159ff31efa701 100644 (file)
@@ -24,3 +24,7 @@ __PACKAGE__->add_unique_constraint("kategorie_name", ["kategorie_name"]);
 
 # You can replace this text with custom content, and it will be preserved on regeneration
 1;
+
+__END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab :
index 65d3c50615d6865b0b85db1b503c94b4d6d07d35..3ffa546213d2630fd665112f3bd310aee97ab775 100644 (file)
@@ -25,3 +25,7 @@ __PACKAGE__->add_unique_constraint("serien_name", ["serien_name"]);
 
 # You can replace this text with custom content, and it will be preserved on regeneration
 1;
+
+__END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab :
index 0563b1deb0e28cfb1cdbcc84c9430c61fb4be292..71898926f4fd9057de336d8dcc9711808eeddcf7 100644 (file)
@@ -24,3 +24,7 @@ __PACKAGE__->set_primary_key("id");
 
 # You can replace this text with custom content, and it will be preserved on regeneration
 1;
+
+__END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab :
index 8dd53d03ebe56cbe7531e2b2ecd1aaab757ae613..e4beabc26cfe3bd530b25452f6f173ffb51c3c32 100644 (file)
@@ -34,3 +34,7 @@ __PACKAGE__->add_unique_constraint("login", ["login"]);
 
 # You can replace this text with custom content, and it will be preserved on regeneration
 1;
+
+__END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab :
index 463f60292152a45a8c4cacc68b126a80d28bc670..9624090734235e639ec42a2bce9e87ef895ab823 100644 (file)
@@ -25,3 +25,7 @@ __PACKAGE__->add_unique_constraint("name_short", ["name_short"]);
 
 # You can replace this text with custom content, and it will be preserved on regeneration
 1;
+
+__END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab :
index 5eb0f54140de9570fe2a2c56df762672f3bfe966..7140fa95c6da1cfc44795ecf621b39c6392d44a6 100644 (file)
@@ -26,3 +26,7 @@ __PACKAGE__->add_unique_constraint("waehrungs_kuerzel", ["waehrungs_kuerzel"]);
 
 # You can replace this text with custom content, and it will be preserved on regeneration
 1;
+
+__END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab :
index 22cbc9e01b0d59d1547125bd277e2b898cd5590d..16bed791e19ea52da69150d666e1cc16585b93dc 100644 (file)
@@ -42,3 +42,7 @@ it under the same terms as Perl itself.
 =cut
 
 1;
+
+__END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab :
index cb628991140802fb1276c95c8926edd45649d2d9..22474638aebfc59e9d2fc3b5a02b0783fa088e77 100644 (file)
@@ -100,3 +100,6 @@ sub finalize_config {
 
 #---------------------------------------------------------------------------
 
+__END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab :
index 935e6600789dd86fb46c6c7fcc01fea9e8e49110..98a42b43c557918a4265ac1e064a2352267ef15a 100644 (file)
@@ -36,3 +36,6 @@ sub web_path {
 
 1;
 
+__END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab :
index de295ff1f1728f906d031b538ca69a8d6faee833..cafd723a1a93049c19260b3aab0aabd1196bad52 100644 (file)
@@ -171,3 +171,7 @@ it under the same terms as Perl itself.
 =cut
 
 1;
+
+__END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab :
index 90b1661ec3ef56e775a5e7e78050025a9891f1ed..be9454e82925ac53afeebb68ad74a6cc19834eef 100644 (file)
@@ -246,3 +246,7 @@ it under the same terms as Perl itself.
 =cut
 
 1;
+
+__END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab :
index 9b6f7400660e4042c718463d8d81ad2c4b964e39..cc365fcaacd1cf456aaeddcdaa1121eef395bfa9 100644 (file)
@@ -122,3 +122,7 @@ it under the same terms as Perl itself.
 =cut
 
 1;
+
+__END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab :
index 1cecc61201a6d5b71191b6fa347cb41466f402d0..b654b8feaab3cdff7fac100761a34f8fcf4b52d1 100644 (file)
@@ -143,3 +143,7 @@ it under the same terms as Perl itself.
 =cut
 
 1;
+
+__END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab :
index c6d306cf58cb1376cd1f738683e49303c231eec9..e64a989dbc470565ebf9bd4bc3644dd4caf224f8 100644 (file)
@@ -120,9 +120,9 @@ sub get_verlagsliste {
 
 sub save_verlag {
 
-    my $c     = shift;
-    my $autor = shift;
-    my $K = __PACKAGE__ . "::save_verlag(): ";
+    my $c      = shift;
+    my $verlag = shift;
+    my $K      = __PACKAGE__ . "::save_verlag(): ";
 
     $c->log->debug( $K . "aufgerufen." ) if $c->stash->{'debug_level'} > 2;
 
@@ -151,7 +151,7 @@ ENDE
         $sth->execute( $verlags_id, $name_short, $name_long, $name_short, $name_long );
     };
 
-    $storage->dbh_do( $save_func, $verlag->{'id'}, $verlag->{'name'}, $verlag->{'desc'} );
+    $storage->dbh_do( $save_func, $verlag->{'id'}, $verlag->{'name'}, $verlag->{'name_long'} );
 
     return $storage->last_insert_id();
 
@@ -171,3 +171,7 @@ it under the same terms as Perl itself.
 =cut
 
 1;
+
+__END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab :
index 8a6788353354ff38d5fe21e65a57493681223266..34ede56a1850f1de557ccfa08b7f69bd10b98a4b 100644 (file)
@@ -129,3 +129,7 @@ it under the same terms as Perl itself.
 =cut
 
 1;
+
+__END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab :
index 45a9857c552377892306b2031b700bddec625754..1c8eb0691cd547623c94f5a79781c40c2c1f0827 100644 (file)
@@ -45,3 +45,7 @@ it under the same terms as Perl itself.
 =cut
 
 1;
+
+__END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab :
index cc47329ab13ec0a51d8f2799efcda090e1175e8c..31ea1fb95c829610a6ddc034a5242768c27112f7 100644 (file)
@@ -430,3 +430,5 @@ sub escape_html {
 #------------------------------------------------------------------------------------------
 
 __END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab :
index 478cef47c22e1be33c74943b1379edb913fbd4f0..59facbcf366b548a0ce60cb0071240274852f6f9 100644 (file)
@@ -2,6 +2,8 @@
 
    alle Farbdefinitionen
 
+   vim: noai : ts=4 fenc=utf-8 filetype=html expandtab :
+
    $Id$
    $URL$
 
index 167fca13640ac2b64f3a86efcd70ed367a034832..eebd07f28f817535372125f2aff29292f10625fc 100644 (file)
@@ -1,5 +1,7 @@
 [%# config/main
 
+   vim: noai : ts=4 fenc=utf-8 filetype=html expandtab :
+
    $Id$
    $URL$
 
index ab28d808f4b2797c1a23d520a14d6fb2bc425011..0d73d7dcc05de04c8b4df9b6b205061068b06226 100644 (file)
@@ -2,6 +2,8 @@
 
     config/url.tt2
 
+   vim: noai : ts=4 fenc=utf-8 filetype=html expandtab :
+
    # alle URL-Definitionen
    #
    # $Id$
index ae59d8548fc064f369e2166d723195566cf41265..909a3de8a1b8ad0a5e9af724ea2f8fbe6d01e4a9 100644 (file)
@@ -1,6 +1,8 @@
 [%#
   ** Template fuer Fusszeile
   **
+  ** vim: noai : ts=4 fenc=utf-8 filetype=html expandtab :
+  **
   ** $Id$
   ** $URL$
   ** -%]
index 9a0d31bb09b09a64fec1b66fa4679570bd80ee60..0d6e2fda20a8ef509369869c5e68daa8e421a9f2 100644 (file)
@@ -1,6 +1,8 @@
 [%#
   ** Template fuer Seitenkopf
   **
+  ** vim: noai : ts=4 fenc=utf-8 filetype=html expandtab :
+  **
   ** $Id$
   ** $URL$
   **
index c94e96e11521da9d8e8efb53b24896e13a91ea94..3260c134911a0ed43ad0c1888d0896575c5d58c9 100644 (file)
@@ -2,6 +2,8 @@
 
     Template fuer HTML-Seite als Ganzes
 
+    vim: noai : ts=4 fenc=utf-8 filetype=html expandtab :
+
     $Id$
     $URL$
 
index a2980548d8c7db2a56b1ad5a43566aa378c32db2..680870cd738f10db1b15e470aea2fb88478dd4ff 100644 (file)
@@ -2,6 +2,8 @@
 
     Template fuer Einbindung reines JavaScripts
 
+    vim: noai : ts=4 fenc=utf-8 filetype=html expandtab :
+
     $Id$
     $URL$
 
index 75c90389b8c812f6ce324a4d65efe29482375814..0a54a5a4e7bcf085d31f83a816be0168e05019a9 100644 (file)
@@ -2,6 +2,8 @@
 
     Template fuer HTML-Seite als Ganzes
 
+    vim: noai : ts=4 fenc=utf-8 filetype=html expandtab :
+
     $Id$
     $URL$
 
index 825119b0dd44f6ad64c38ce08e067f4462ea1395..5eb1135211e305643f35e5c6f5f5c8c3ed0372ec 100644 (file)
@@ -1,6 +1,8 @@
 [%#
   ** Template fuer Allgemeines Seiten-Layout
   **
+  ** vim: noai : ts=4 fenc=utf-8 filetype=html expandtab :
+  **
   ** $Id$
   ** $URL$
   **
index eac6ec669c89a3a5b63a7ff9218296d2022c3502..7ba9d0cf6c49393234923c5d611bff978af07f2d 100644 (file)
@@ -2,6 +2,8 @@
 
    Template fuer den Statusbalken / Menuezeile
 
+   vim: noai : ts=4 fenc=utf-8 filetype=html expandtab :
+
    $Id$
    $URL$
 
index 257b542c6be89216717fa566603814fdf0ca066f..6562f7ce6c3109c8559ab6ab0d3faa35814b715d 100644 (file)
@@ -2,6 +2,8 @@
 
     Template fuer HTML-Seite als Ganzes
 
+    vim: noai : ts=4 fenc=utf-8 filetype=html expandtab :
+
     $Id$
     $URL$
 
index 709c233f386560f0a60b84c3f0323d78f7b48531..f9ac63771781e41aa227f055bdc96954cff941a1 100644 (file)
@@ -1,6 +1,8 @@
 [%#
      Template fuer Autorenangaben
 
+     vim: noai : ts=4 fenc=utf-8 filetype=html expandtab :
+
      $Id$
      $URL$
 
index 31d13301b23dc4d644834349b6569942f6892793..8298d566673107f5910d1ef2abd0f5b8361b35fa 100644 (file)
@@ -2,8 +2,10 @@
 
     index.tt2 - Index-Template (Menue) fuer Autoren-Dinge
 
-   #$Id$
-   #$URL$
+    vim: noai : ts=4 fenc=utf-8 filetype=html expandtab :
+
+    $Id$
+    $URL$
 
 -%]
 <div style="text-align: center">
index c52fbd48e1b36fd93cfb56994fb5b40f42ad103b..824821a8aca1f85db96176ab383e7c60ca0e9a9c 100644 (file)
@@ -1,8 +1,10 @@
 [%#
-     Template fuer neuen Autor
+    Template fuer neuen Autor
 
-     $Id$
-     $URL$
+    vim: noai : ts=4 fenc=utf-8 filetype=html expandtab :
+
+    $Id$
+    $URL$
 
 -%]
 [%- autor_form_title = 'Neuer Autor' -%]
index 00242408d589a2971cb474f78660ab0dc70bf4fe..5e88d9bf6c3903b27e0b12122f3e5f7d023dafe2 100644 (file)
@@ -2,8 +2,10 @@
 
     index.tt2 - Template fuer erfolgreiches Speichern des Autors
 
-   #$Id$
-   #$URL$
+    vim: noai : ts=4 fenc=utf-8 filetype=html expandtab :
+
+    $Id$
+    $URL$
 
 -%]
 <div style="text-align: center">
index f08907fc94330a535ebcd2fa99e078d28d03fa70..ebd694c4875c53ccfbdc397a069c13fca74a4775 100644 (file)
@@ -1,8 +1,10 @@
 [%#
-     Template fuer Buchangaben
+    Template fuer Buchangaben
 
-     $Id$
-     $URL$
+    vim: noai : ts=4 fenc=utf-8 filetype=html expandtab :
+
+    $Id$
+    $URL$
 
 -%]
 
index 2bed461706bb51d7991f800271df39e284f28d61..73d6a4acfad72fe1c28a9dfb2f525e3075fa2067 100644 (file)
@@ -2,8 +2,10 @@
 
     message.tt2 - Universal-Template
 
-   #$Id$
-   #$URL$
+    vim: noai : ts=4 fenc=utf-8 filetype=html expandtab :
+
+    $Id$
+    $URL$
 
 -%]
 <div style="text-align: center">
index 6500469d9afea711f3b07ab7ded47e201849fe9a..5e10e210fe26a017d08bb56c92c511cb1f4cb64f 100644 (file)
@@ -1,6 +1,8 @@
 [%#
   ** Template fuer Buecherliste
   **
+  ** vim: noai : ts=4 fenc=utf-8 filetype=html expandtab :
+  **
   ** $Id$
   ** $URL$
   ** -%]
index 59abf93dd7df92a6c3a499d3042e6e5f293a7985..a56037165c13b8c041f1150068167e48543abe11 100644 (file)
@@ -1,8 +1,10 @@
 [%#
-     Template fuer neues Buch
+    Template fuer neues Buch
 
-     $Id$
-     $URL$
+    vim: noai : ts=4 fenc=utf-8 filetype=html expandtab :
+
+    $Id$
+    $URL$
 
 -%]
 [%- book_form_title = 'Neues Buch' -%]
index 66cf6c6c95aba43c8b682043bf17164740ae05c4..3d8f587b6ecd507d4f64398a587435526f7cb8df 100644 (file)
@@ -2,8 +2,10 @@
 
     error.tt2 - Template zur Darstellung eines Template-Fehlers
 
-   #$Id$
-   #$URL$
+    vim: noai : ts=4 fenc=utf-8 filetype=html expandtab :
+
+    $Id$
+    $URL$
 
 -%]
 [% META title = 'Fehler' %]
index d8f32b40b1687c688cddb73c11a4776fa00c9525..590aca29ccd06a71a59c1d5f818eb90e843f0b6b 100644 (file)
@@ -2,8 +2,10 @@
 
     message.tt2 - Universal-Template
 
-   #$Id$
-   #$URL$
+    vim: noai : ts=4 fenc=utf-8 filetype=html expandtab :
+
+    $Id$
+    $URL$
 
 -%]
 [%- META title = 'Willkommen in Franks Büchersammlung' -%]
index 62da1b961141d4f0912e6ea2f28a9278ea3b6fbb..c9f34d29c9c0b86399d25a25b540462ff0d0e236 100644 (file)
@@ -1,8 +1,10 @@
-[%- #
-    # Template zur Darstellung eines noch nicht implementierten Features
-    #
-    # $Id$
-    # $URL$
-    #
+[%#
+    Template zur Darstellung eines noch nicht implementierten Features
+
+    vim: noai : ts=4 fenc=utf-8 filetype=html expandtab :
+
+    $Id$
+    $URL$
+
 -%]
 <h3>Das gewünschte Feature wurde leider noch nicht implementiert.</h3>
diff --git a/root/src/verlag/form.css b/root/src/verlag/form.css
new file mode 100644 (file)
index 0000000..dca05ff
--- /dev/null
@@ -0,0 +1,10 @@
+[%#
+   # Template fuer Stylesheets Verlagsformulare
+   #
+   # $Id$
+   # $URL$
+   #
+-%]
+/*  Stylesheets Verlags-Formulare */
+
+
index 4889e9e1cf8063df699d12050227d2a3902599e0..24faddf807fbfa24ba25be5c61574d8017d0c538 100644 (file)
@@ -2,8 +2,10 @@
 
     index.tt2 - Index-Template (Menue) fuer Verlags-Dinge
 
-   #$Id$
-   #$URL$
+    vim: noai : ts=4 fenc=utf-8 filetype=html expandtab :
+
+    $Id$
+    $URL$
 
 -%]
 <div style="text-align: center">
diff --git a/root/src/verlag/new.tt2 b/root/src/verlag/new.tt2
new file mode 100644 (file)
index 0000000..c13ea03
--- /dev/null
@@ -0,0 +1,16 @@
+[%#
+
+    Template fuer neuen Verlag
+
+    vim: noai : ts=4 fenc=utf-8 filetype=html expandtab :
+
+    $Id$
+    $URL$
+
+-%]
+[%- book_form_title = 'Neuer Verlag' -%]
+[% PROCESS verlag/verlag_form.tt2 %]
+
+<div class="back">
+<h2><a href="[% path('/books') %]">[% 'Zurück' %]</a></h2>
+</div>
diff --git a/root/src/verlag/save_success.tt2 b/root/src/verlag/save_success.tt2
new file mode 100644 (file)
index 0000000..a370b43
--- /dev/null
@@ -0,0 +1,17 @@
+[%#
+
+    save_success.tt2 - Template fuer erfolgreiches Speichern des Verlags
+
+    vim: noai : ts=4 fenc=utf-8 filetype=html expandtab :
+
+    $Id$
+    $URL$
+
+-%]
+<div style="text-align: center">
+
+Der Verlag <b>&quot;[% verlag_edit.name %]</b> wurde erfolgreich gespeichert.
+
+<h2><a href="[% return_target_verlag_save %]">OK</a></h2>
+
+</div>
diff --git a/root/src/verlag/verlag_form.tt2 b/root/src/verlag/verlag_form.tt2
new file mode 100644 (file)
index 0000000..05369b3
--- /dev/null
@@ -0,0 +1,39 @@
+[%#
+
+    Template fuer Verlagsangaben
+
+    vim: noai : ts=4 fenc=utf-8 filetype=html expandtab :
+
+    $Id$
+    $URL$
+
+-%]
+
+<!-- Verlags-Formular -->
+
+<form method="post" name="verlag_form" action="[% self_url %]">
+<input type="hidden" name="verlag_form_sent" value="sent" />
+[%- IF verlag_edit.id %]<input type="hidden" name="verlag_id" value="[% verlag_edit.id | html %]" />[% END %]
+  <table class="ftable" cellspacing="0">
+    <tr>
+      <th colspan="2" class="title">[% verlag_form_title %]</th>
+    </tr><tr>
+      <td colspan="2">&nbsp;</td>
+    </tr><tr>
+      <th>Name des Verlags:</th>
+      <td><input type="text" name="verlag_name" size="50" maxlength="250" value="[% verlag_edit.name | html %]" /></td>
+    </tr><tr>
+      <th>Kompletter Verlagsname:</th>
+      <td><textarea name="verlag_name_long" cols="50" rows="5">[% verlag_edit.name_long | html %]</textarea></td>
+    </tr><tr>
+      <td colspan="2">&nbsp;</td>
+    </tr><tr>
+      <th colspan="2" class="button"><input type="submit" name="do_save" value="  OK  " /></th>
+    </tr>
+  </table>
+</form>
+[%- IF error_message %]
+<div class="error">
+<span class="bold">Fehler:</span>&nbsp;[% error_message %]
+</div>
+[% END -%]
index 55188566be650ef6e5638af31b4a8fac640f9c2a..46c7e2d527a4fadffa29177100c9140643a892a9 100644 (file)
@@ -2,8 +2,10 @@
 
     message.tt2 - Universal-Template
 
-   #$Id$
-   #$URL$
+    vim: noai : ts=4 fenc=utf-8 filetype=html expandtab :
+
+    $Id$
+    $URL$
 
 -%]
 [%- META title = 'Standard-Seite' %]
index 82fb25bd58eaea6e6af05c0fd913de1e03cfb5e8..1e8cda2b5db717f301d3434c2867e8609a4c6d45 100755 (executable)
@@ -35,3 +35,7 @@ This library is free software, you can redistribute it and/or modify
 it under the same terms as Perl itself.
 
 =cut
+
+__END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab :
index 51a1e3d38ef502bd72522311b6864bc29d2dc4d5..3cb6a572aff998921489e365e9106e80d3a445dc 100755 (executable)
@@ -73,3 +73,7 @@ This library is free software, you can redistribute it and/or modify
 it under the same terms as Perl itself.
 
 =cut
+
+__END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab :
index 205800ee0daed5e6f708aed97c37eb1c28a983af..d899a1bc4e32f1ae163d4dab414de61a2628d772 100755 (executable)
@@ -78,3 +78,7 @@ This library is free software, you can redistribute it and/or modify
 it under the same terms as Perl itself.
 
 =cut
+
+__END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab :
index f51db84c67d5a661e1bc331a630a4a0c69397920..442232e8cac5ecfb877146a5209521b4ab92a6f6 100755 (executable)
@@ -109,3 +109,7 @@ This library is free software, you can redistribute it and/or modify
 it under the same terms as Perl itself.
 
 =cut
+
+__END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab :
index 16e6f12b82440729c8b2bc153491591eb68d5e66..778e42474b974b396dbb3376c58ffdfe9c36ee36 100755 (executable)
@@ -52,3 +52,7 @@ This library is free software, you can redistribute it and/or modify
 it under the same terms as Perl itself.
 
 =cut
+
+__END__
+
+# vim: noai : ts=4 fenc=utf-8 filetype=perl expandtab :